The Python setup.py file

The setup.py file is used by the PIP installer to determine what module / package dependencies you have in your project as well as descriptive information about who the author is, what version you project (as a package) is, and so forth. In addition to external package dependencies, you can also specify the folder and Python script filename which makes it easier to import your Python modules in your code.

Example Contents

Python
from setuptools import setup

setup(
   name='greatApp',
   version='1.0',
   description='A useful module',
   author='Jane Doe',
   author_email='jd@foo.com',
   packages=['greatApp'],  #same as name
   install_requires=['numpy', 'tensorflow', 'flask'], #external packages as dependencies
)