* 1.2.14: SetuptoolsDeprecationWarning due to the use of `sys.exit(0)`
[not found] <18366cc26db3cf00-webhooks-bot@alsa-project.org>
@ 2025-04-15 7:18 ` GitHub issues - opened
0 siblings, 0 replies; only message in thread
From: GitHub issues - opened @ 2025-04-15 7:18 UTC (permalink / raw)
To: alsa-devel
alsa-project/alsa-python issue #18 was opened from dvzrv:
Hi! 👋
I package this project for Arch Linux.
During update to 1.2.14 I noticed that setuptools now raises the following warning:
```
/usr/lib/python3.13/site-packages/setuptools/build_meta.py:522: SetuptoolsDeprecationWarning: Running `setup.py` directly as CLI tool is deprecated.
!!
********************************************************************************
Please avoid using `sys.exit(0)` or similar statements that don't fit in the paradigm of a configuration file.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
super().run_setup(setup_script=setup_script)
```
This appears to be triggered by the `sys.exit(0)` call in setup.py:
https://github.com/alsa-project/alsa-python/blob/20b2b3999f24af462815b9c86e967643ccd30037/setup.py#L74-L75
(Setuptools now offers one of the various PEP517 build backends and calling setup.py directly as a script is deprecated).
Looking at the file I noticed that there are still conditionals that accommodate Python2:
https://github.com/alsa-project/alsa-python/blob/20b2b3999f24af462815b9c86e967643ccd30037/setup.py#L77-L80
Those should be removed, as the script itself is marked as Python3 (and well of course because Python2 is long discontinued 😅).
Issue URL : https://github.com/alsa-project/alsa-python/issues/18
Repository URL: https://github.com/alsa-project/alsa-python
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-04-15 7:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <18366cc26db3cf00-webhooks-bot@alsa-project.org>
2025-04-15 7:18 ` 1.2.14: SetuptoolsDeprecationWarning due to the use of `sys.exit(0)` GitHub issues - opened
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.