-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
python setup.py
and the use of setup.py
as a command line tool are deprecated
#473
Comments
The pyroject.toml has a build section, so it should be a matter of |
Or maybe just |
Agreed... I was worried about how to handle three of the failing tests that do: |
I think you should be able to use |
I think you need
To avoid this deprecation, Pillow uses a custom build backend wrapping setuptools (python-pillow/Pillow#7171) and I've created python-pillow/Pillow#7658 to fix some issues with that. |
If there is no solution that isn't deprecated, I'm not sure we can do better than what we do now. |
A problem is that Mac users are quite diligent about updating macOS and #472 demonstrates that installation tests fails on macOS 12, 13, and 14. |
@cclauss You're quoting documentation about what pip would like to have happen, but I don't see a solution being offered. We can't not pass the information about which ABI to build for. |
This doesn't work the last time I tried it. Build/setuptools will complain that the project script contains absolute paths (for the helper source files), and refuse to build. See my issue at #435 for related discussion. |
Using
We could use an environment variable |
Correction: using |
An environment variable might help. I tried that with pip awhile ago and the environment variable wasn't passed into the isolated build, but perhaps we can do the build with |
If others agree and someone wants to do this, we could try rewrite the tests in |
https://github.com/hpyproject/hpy/pull/472/files#diff-8ca48d70aa8abbf3dec9764a6d23dc3d0879df302dd383d795011b487be2b898 was an attempt to do that but I think I am in over my head. |
https://packaging.python.org/en/latest/discussions/setup-py-deprecated
From the test errors in #472 on macOS 12 and later.
----------------------------- Captured stderr call -----------------------------
/Users/runner/work/hpy/hpy/.tmpdir/popen-gw0/test_hpymod_legacy_cpython_0/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
!!
self.initialize_options()
/Users/runner/work/hpy/hpy/.tmpdir/popen-gw0/test_hpymod_legacy_cpython_0/venv/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
The text was updated successfully, but these errors were encountered: