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

Incompatibilities with recent changes in Python ecosystem #144

Open
pmattern opened this issue Apr 15, 2024 · 1 comment
Open

Incompatibilities with recent changes in Python ecosystem #144

pmattern opened this issue Apr 15, 2024 · 1 comment

Comments

@pmattern
Copy link
Contributor

pmattern commented Apr 15, 2024

There are currently some incompatibilities with changes made to the Python ecosystem. None of them is really urgent, I think it's okay to summarize all in a single issue.

Distutils were removed in Python 3.12. meteo-qt is still using some of their features, e. g. some of those mentioned in section Migration Advice in setup.py.
Setuptools provide some kind of compatibility layer, so meteo-qt still builds against Python 3.12. But in the long run this should be fixed.

The other one are the fundamental changes of the packaging concepts depicted in PEP 517.
Workarounds for software lacking support at the packaging stage are available but do not really make sense.
So it would be good, if you could at least add a pyproject.toml allowing to use setuptools as backend in terms of those new concepts. Maybe you want to ditch setuptools altogether in favor of one of the other backends while at it. YMMV.

One of the localization tools will be deprecated in Python 3.15:

/usr/lib/python3.12/site-packages/PyQt5/pylupdate_main.py:73: DeprecationWarning: 'locale.getdefaultlocale' is deprecated and slated for removal in Python 3.15. Use setlocale(), getencoding() and getlocale() instead.

There's an incompatibility with Setuptools' package configuration:

/usr/lib/python3.12/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'meteo_qt.images' is absent from the `packages` configuration.
[...]

EDIT
Section about Distutils was inaccurate, add two more problems.

@dglent
Copy link
Owner

dglent commented Apr 16, 2024

Thank you @pmattern i wasn't aware of this evolution.
I will check also to add the pyproject.toml; i am busy unfortunately this period, i will try to do as soon as possible , any help is welcome.

archlinux-github pushed a commit to archlinux/aur that referenced this issue Apr 28, 2024
archlinux-github pushed a commit to archlinux/aur that referenced this issue Apr 28, 2024
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

2 participants