The setup.py file
The setup.py file is what governs everything when you want to interact with a Python project. When the setup() method is executed, it generates a static metadata file, which follows the PEP 314 format. The metadata file holds all the metadata for the project, but you need to regenerate it via a setup() call to get it ;to the Python environment you are using.
The reason why you cannot use a static version is that the author of a project might have platform-specific code in ;setup.py, which generates a different metadata file depending on the platform and Python versions.
To rely on running a Python module to extract static information about a project has always been a problem. You need to make sure that the code in the module ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access