-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Installation with --pure doesn't seem to work any more #1093
Comments
Thanks so much for the fast fix! ( |
No worries, thanks for the report. Ideally setuptools would add some functionality than does this.. |
Sorry to bother you again, for something that's totally not your fault (but is due to the changes in (Tested with pip 22.3.1.)
Unfortunately, with PEP517 (I think), After some investigations, it seems that (either of) the two following monstrosities do work (producing a pure-python install): pip install --no-binary dulwich dulwich --config-settings "--global-option=--pure" pip install --no-binary dulwich dulwich --config-settings "--build-option=--pure" ( However, (while I'll probably be using one of them for my use (in (Sorry for not having tested this at the time, but I had assumed that if |
Unfortunately the pip ecosystem is out of Dulwich' control :) I'm happy to take a PR that updates the instructions for pip. I'm also somewhat leaning towards just drop those instructions, rather than trying to chase pip and come up with workarounds. Ideally this would be fixed with a flag in upstream pip to indicate you prefer pure packages. |
See: jelmer#1093. Currently, both --global-option=--pure and --build-option=--pure work (when set in --config-settings). However, using --global-option in this way is considered deprecated: https://setuptools.pypa.io/en/latest/history.html#id139 pypa/setuptools#3380 --no-binary is needed to prevent pip installing the pre-built wheels from pypi.org.
It seems that the method of installing without C bindings recommended in the README doesn't work.
To reproduce
Clone from master and run:
(Or alternatively run
pip3 install dulwich --global-option="--pure"
.)Expected behaviour
Dulwich is set up without the C extensions.
Actual behaviour
The following error message is raised:
Speculation
I suspect that the commit
3b22cba273693e20c491de48cfdcbc30ab0c517d
caused the change in behaviour, but haven't investigated further.Context
I use the "pure" version of Dulwich for an add-on for Anki (
CrowdAnki
), which has to be distributable in the same form for all platforms, and hence can't rely on compiled C code. This worked with previous versions of Dulwich (e.g.0.20.24
), but doesn't work with the latest version.Thanks for the extremely useful package!
The text was updated successfully, but these errors were encountered: