Skip to content

Conversation

@tkng
Copy link
Contributor

@tkng tkng commented Nov 25, 2025

Direct invocations of setup.py have been deprecated by the Python packaging community and will be unsupported after 2025-Oct-31. This commit migrates the build process to use python -m build, which is the new recommended approach.

Changes:

  • Add build package to workflow requirements
  • Replace build_sdist.sh script with python -m build --sdist
  • Update README installation instructions to use python -m build

References:

Testing Information**:

As described in #1166, this problem doesn't have any practical impact yet, hence there's no procedure to cause an actual problem.

Fix #1166.

Direct invocations of setup.py have been deprecated by the Python
packaging community and will be unsupported after 2025-Oct-31.
This commit migrates the build process to use `python -m build`,
which is the new recommended approach.

Changes:
- Add `build` package to workflow requirements
- Replace `build_sdist.sh` script with `python -m build --sdist`
- Update README installation instructions to use `python -m build`

References:
- https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html
- https://setuptools.pypa.io/en/latest/deprecated/commands.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build_sdist.sh calling setup.py directly

1 participant