怎么打包flask资源文件,打包flask资源文件,使用flask写了一个网


使用flask写了一个网站、目录结构如图所示

打包程序为:

from distutils.core import setup from setuptools import
find_packages

setup(name='abc',      version='1.0',      description='abc Common Distribution',      author='aaa',      author_email='aaa',      url='aaaaa',      license="GPL",      packages=find_packages(),      include_package_data=True,      py_modules=["manage"], )

运行该程序生成的打包文件tar.gz文件解压打开没有 static文件夹和里面的资源以及tempaltes文件夹和里面的资源,请问需要如何设置打包程序?

编橙之家文章,

评论关闭