May 2019
Intermediate to advanced
542 pages
13h 37m
English
Apart from establishing the basic metadata, setup() needs information about the actual code that needs to be included, or the environment that needs to be present on the system for this package to be executed.
The first keyword we need to deal with here is packages, which defines the modules in our project that need to be included:
packages=['qtictactoe', 'qtictactoe.images'],
Note that we need to include both the qtictactoe module and the qtictactoe.images module explicitly; even though the images directory is under qtictactoe, it will not be included automatically.
If we had a lot of submodules and didn't want to explicitly list them, setuptools offers an automatic solution as well:
from setuptools import setup, ...
Read now
Unlock full access