Python packaging documentation explicitly warns that commands like python setup.py sdist bdist_wheel are deprecated and “MUST NOT be run anymore”.
Yet we use exactly that command in our publishing workflow.
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.
I’ve moved sntools over to build last year and found it worked very well and was a bit cleaner, too.
[Edit: See SNEWS2/BEMEWS#4 for another example.]
Python packaging documentation explicitly warns that commands like
python setup.py sdist bdist_wheel
are deprecated and “MUST NOT be run anymore”. Yet we use exactly that command in our publishing workflow.The recommended replacement is the
build
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.I’ve moved sntools over to
build
last year and found it worked very well and was a bit cleaner, too. [Edit: See SNEWS2/BEMEWS#4 for another example.]