1. 创建一个简单的包
-
创建
setup_demo
文件夹,编写如下的 setup.py 文件:from setuptools import setup, find_packages setup( name = "demo", version = "0.1", packages = find_packages(), )
-
在当前路径所在的命令行下执行:
python setup.py bdist_egg
- http://yansu.org/2013/06/07/learn-python-setuptools-in-detail.html