-
Notifications
You must be signed in to change notification settings - Fork 3k
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
setup.py breaks when run through new pip due to somehow missing Cython, works outside of pip and worked in old pip #12190
Comments
My apologies for maybe being a bit dense, but the tickets only seems to contain workarounds for the user but doesn't seem to have any info on how the package should be changed. The problem seems to be that |
You need to add build dependencies in a pyproject.toml, e.g. [build-system]
build-backend = 'setuptools.build_meta'
requires = [
'setuptools',
'cython'
] |
That's not practical though, it depends on another package's pxd headers and that other package takes half an hour to build. It's not really feasible to just randomly switch over to an isolated virtualenv if that's what's going on. How would I tell pip not to do that from the package's side? |
Then use |
Description
Running this
setup.py
of mine, which unchanged used to work some weeks ago before a python and pip upgrade, and still works when directly runningpython3 setup.py install --user
, breaks when invoked through a pip install of the package:Expected behavior
Installing the package works fine as it does outside of pip and does with older Python + pip.
pip version
pip-23.1.2, pip-23.2.1
Python version
3.11.4
OS
postmarketOS 23.06, used to work with pip + Python from postmarketOS 22.12
How to Reproduce
cd /home/user/Develop/myprj && pip3 install --user -U .
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: