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

support parallel builds with setup.py build -j10 #28

Open
pabs3 opened this issue Aug 4, 2020 · 3 comments
Open

support parallel builds with setup.py build -j10 #28

pabs3 opened this issue Aug 4, 2020 · 3 comments

Comments

@pabs3
Copy link

pabs3 commented Aug 4, 2020

When I try to do a parallel build with setup.py build -j10 I still only get one gcc process being run at a time, which means that the build takes a while longer than I would like. It would be great to have support for parallel builds so they take less time.

@honnibal
Copy link
Member

I would really appreciate a PR to improve this, sure.

One thing that's really awkward at the moment is that we invoke the compiler separately in a bunch of subprocesses. This is super slow. I don't know how to avoid it though, given the way the jsonl build log works. Open to suggestions.

@dimaqq
Copy link

dimaqq commented Feb 25, 2021

Better yet, allow passing this option via environment variable, so that I could do:

env MAKELAGS="-j" poetry install that installs my project, which installs scapy, which installs blis which then uses as many cores as are available, like make does.

@dimaqq
Copy link

dimaqq commented Feb 25, 2021

Context: this is a notable issue for any musl-based distro, like alpine, where today there can be no wheels on pypi.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants