Building the first working distribution

All of the tools we mentioned previously (setuptoolsDistutils 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 ...

Get NumPy Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.