All of the tools we mentioned previously (setuptools
, Distutils
and numpy.distutils
) are centered around the function setup. To get an understanding of most packaging requirements, we will look into a simple setup function and then study a full-fledged installer. To create a basic installer, we need to call the setup function with metadata about the package. Let's call our first package py_hello
, which has just one function greeter
, and just prints a message when called. The package can be downloaded from the Bitbucket repository at https://bitbucket.org/tdatta/books/src/af376df081ef/python/simple_setup/?at=master The project directory structure for the project looks like the following:
py_hello ├── README ├── MANIFEST.in ├── setup.py ├── bin │ └── greeter.bat └── greeter ├── __init__.py ├── greeter.py
Let's look at some standard files here:
README
-This file is used to store information...