Skip to content
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

allow depending on "dulwich[pure]" to disable C extension build #593

Closed
jelmer opened this issue Dec 7, 2017 · 7 comments
Closed

allow depending on "dulwich[pure]" to disable C extension build #593

jelmer opened this issue Dec 7, 2017 · 7 comments

Comments

@jelmer
Copy link
Owner

jelmer commented Dec 7, 2017

There isn't an easy way to do this at the moment; you can only do this
using e.g. requirements.txt.

For setup.py, ideally we'd want to support something like
"dulwich[pure]" in your setup.py's install_requires, but I haven't
worked out the right magic to make that work in dulwich' setup.py yet. See
https://setuptools.readthedocs.io/en/latest/setuptools.html#id14 for
background on extras.

@Lothiraldan
Copy link
Contributor

I tried adding a pure extra dependency but I cannot find a way to know if the pure extra dependency has been choosen or not in the DulwichDistribution class. If we find a way, it should be easy to add it.

Maybe it would be easier to add an extra dependency to use the C code but it wouldn't be backward compatible.

@jelmer
Copy link
Owner Author

jelmer commented Jun 5, 2018

I'd like the default to having C extensions enabled. If we do it the other way around, most people are going to end up with the slower version of Dulwich.

@Lothiraldan
Copy link
Contributor

What about having two package? dulwich and dulwich-pure?

@jelmer
Copy link
Owner Author

jelmer commented Jun 5, 2018 via email

@efiop efiop mentioned this issue May 17, 2019
2 tasks
@Suor
Copy link

Suor commented Jul 29, 2019

If all the wheels were there this won't be an issue I guess.

@jelmer
Copy link
Owner Author

jelmer commented Jul 30, 2019

If all the wheels were there this won't be an issue I guess.
Yep, that's the plan.

@jelmer
Copy link
Owner Author

jelmer commented Jun 1, 2020

I'm going to close this since I don't think the current python distutils infrastructure allows doing this, and Dulwich now has wheels for Ubuntu published for Linux, Mac OS X and Windows: https://pypi.org/project/dulwich/#files

@jelmer jelmer closed this as completed Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants