-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fails to install using pip - "lxml-version.h: No such file or directory" #200
Comments
I can confirm that this issue is related to build isolation. During setup, lxml==4.7.0 was being installed because xmlsec has |
Ah, that could explain it. It works without isolation (after installing pkgconfig):
That opens up another question - won't that cause issues if xmlsec is built against a different lxml version than is used in the runtime? Or to ask differently - is build isolation really desired in this case? |
I guess this is best to be answered by |
Allowing different versions is actually the reason for build isolation, so it IMHO works as intended. |
are there any plans of releasing a new version with the fix included cf38b52 soon? |
@bmwant |
@nijel again, IMO this isn't something that the package itself should be responsible for. Surely, you may get issues if you are building against |
Okay, I've created pypa/pip#10731 to discuss this at pip. I don't see a good solution there and avoiding build isolation might be the least bad solution... |
This is a similar error as in #198, but not related to
lxml==4.7.0
, so I'm opening a separate issue for it.For me, the builds started to fail this morning while having lxml version pinned to 4.6.4 (we do pin nearly everything).
There are no code changes between and the only difference in the installed packages is
amqp==5.0.7
instead ofamqp==5.0.6
(this one is not pinned because we don't use it directly, but it's installed by Celery).When playing with it a bit more, these seems to be something broken in the pip build. In the xmlsec sources
python ./setup.py bdist_wheel
works file, whilepip install .
fails:I've also verified that
site-packages/lxml/includes/lxml-version.h
is present.The text was updated successfully, but these errors were encountered: