Python packaging documentation explicitly warns that commands like python setup.py sdist bdist_wheel are deprecated and “MUST NOT be run anymore”.
The recommended replacement is the build module. This also ensures more reproducible builds by requiring build dependencies to be explicitly declared (in a pyproject.toml file) and building the project in an isolated virtual environment.
This PR updates the build infrastructure accordingly. It also moves all package metadata to the pyproject.toml file and leaves setup.py to focus solely on the code needed to build the binary extension.
(This is laying the groundwork for #3, which will be in a separate PR for clarity.)
Python packaging documentation explicitly warns that commands like
python setup.py sdist bdist_wheel
are deprecated and “MUST NOT be run anymore”. The recommended replacement is thebuild
module. This also ensures more reproducible builds by requiring build dependencies to be explicitly declared (in apyproject.toml
file) and building the project in an isolated virtual environment.This PR updates the build infrastructure accordingly. It also moves all package metadata to the
pyproject.toml
file and leavessetup.py
to focus solely on the code needed to build the binary extension.(This is laying the groundwork for #3, which will be in a separate PR for clarity.)