Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove distutils from setup.py #17

Open
redeboer opened this issue Sep 30, 2024 · 0 comments
Open

Remove distutils from setup.py #17

redeboer opened this issue Sep 30, 2024 · 0 comments

Comments

@redeboer
Copy link

Thank you for developing this API package, I am following the developments with interest!

I tried to install the pdg package in Python 3.12, but get

ModuleNotFoundError: No module named 'distutils.command.register'

The reason seems to be that setup.py is using distutils has been been removed since Python 3.12:

https://github.com/particledatagroup/api/blob/ed22911000696953436ca27b32f90efeef633d7c/setup.py#L4C6-L11

This is a problem for lower versions of Python in other package managers as well, specifically when using uv.

It seems that the part that requires distutils is meant publishing the package on PyPI. This should not be exposed to the installation process. Better would be to use twine or to publish through GitHub CI.

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

No branches or pull requests

1 participant