setuptools
Setuptools is for uploading to PyPi. To create self-contained executable files, use pyinstaller.
PROJECT
├── PROJECT # (1)
│ └── init.py
└── setup.py # (2)
1 directory, 2 files
- Additional code files will be placed in here
- Containing a call to setuptools.setup()
setup.pyIf the package has dependencies, they can be added by appending an install_requires keyword argument passing an array of the module names
import setuptools setuptools.setup( name='funniest', version='0.1', description='The funniest joke in the world', url='http://github.com/storborg/funniest', author='Flying Circus', author_email='flyingcircus@example.com', license='MIT', packages=['funniest'], zip_safe=False )
setup( install_requires=[ 'markdown', ], )
Reserve the name, upload package metadata, and create the pypi.python.org webpage
python setup.py register
python setup.py sdist
python setup.py sdist upload
python setup.py register sdist upload