ModuleA
从技术上来说
package
find_packages
from setuptools import setup, find_packages
setup(
name='example',
version='1.0',
url='',
license='MIT',
author='Francisco',
author_email='',
description='',
packages=find_packages(),
zip_safe=False,
include_package_data=True,
platforms='any',
)
目录结构:
$ tree
.
...
âââ ModuleA
â  âââ file1.py
â  âââ file2.py
â  âââ __init__.py
âââ setup.py
$ python setup.py bdist_wheel
....
$ unzip -l dist/example-1.0-py2-none-any.whl
Archive: dist/example-1.0-py2-none-any.whl
Length Date Time Name
--------- ---------- ----- ----
0 2018-09-27 21:53 ModuleA/file2.py
0 2018-09-27 21:53 ModuleA/file1.py
0 2018-09-27 21:53 ModuleA/__init__.py
10 2018-09-27 21:53 example-1.0.dist-info/DESCRIPTION.rst
305 2018-09-27 21:53 example-1.0.dist-info/metadata.json
8 2018-09-27 21:53 example-1.0.dist-info/top_level.txt
92 2018-09-27 21:53 example-1.0.dist-info/WHEEL
163 2018-09-27 21:53 example-1.0.dist-info/METADATA
693 2018-09-27 21:53 example-1.0.dist-info/RECORD
--------- -------
1271 9 files