-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Question] AttributeError: 'Extension' object has no attribute '_needs_stub' #4529
Comments
Hi @alexhutman, I think the preferred solution here is very similar to the one in #3339: In principle So my question is: is the class that you are inheriting So, I realised that you are editing the Could you please make sure that you modify |
Hi @abravalheri, my mistake -- apologies for the noise. I was looking at this note in the setuptools docs:
The code works great now that the Cythonization is in |
You probably could also try to re-run |
setuptools version
72.1.0
Python version
Python 3.11.1
OS
Ubuntu
Additional environment information
I am running Ubuntu via a Docker image that is based upon Sage 10.3.
Description
I saw issue #3339 -- I believe my scenario is different. I subclass
build_ext
, and thereforefinalize_options()
should be called normally. The build works fine during a normal build (pip install .
), however using an editable build (pip install --editable .
) produces the aforementioned error.I have a fix for this lined up here. Please let me know if I am good to send in that PR. The install worked for me after changing those lines.
Expected behavior
I expected it to succeed just as it does while not building in
--editable
mode.How to Reproduce
--editable
):OR:
a503769a4020b2a189703ce7e070062153ae1a69
docker build -t zeroforcing .
). This should succeed with no problems.--editable
afterpip install
:sage -pip install --editable zeroforcing/
Output
The text was updated successfully, but these errors were encountered: