首页 > 其他 > 详细

二 Flask Project 实战 三

时间:2019-04-16 11:39:52      阅读:162      评论:0      收藏:0      [点我收藏+]
9 Make the Project Installable

9.1 Describe the Project

setup.py
from setuptools import find_packages,setup

setup(
name=‘flaskr‘,
version=‘1.0.0‘,
#tell python what package directories to include
packages=find_packages(),
#inclue static data, such as the static and templates
include_package_data=True,
zip_safe=False,
install_requires=[
‘flask‘,],
)

MANIFEST.in

include flaskr/schema.sql
graft flaskr/static
graft flaskr/templates
global-exclude *.pyc

9.2 install the Project

install: pip install -e .
check: pip list

二 Flask Project 实战 三

原文:https://blog.51cto.com/12408798/2379335

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!