Skip to content

bpo-39763: Refactor setup.py #18778

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

Merged
merged 1 commit into from
Mar 4, 2020
Merged

bpo-39763: Refactor setup.py #18778

merged 1 commit into from
Mar 4, 2020

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 4, 2020

Split long build_extensions() method into sub-methods.

Fix also a typo in Popen.wait(): replace sts with status.

https://bugs.python.org/issue39763

Split long build_extensions() method into sub-methods.

Fix also a typo in Popen.wait(): replace sts with status.
@vstinner
Copy link
Member Author

vstinner commented Mar 4, 2020

With this refactoring, it may become easier to change in which order extensions are built, to try to build the subprocess earlier.

Maybe we could try to build the subprocess first, not in parallel, then reload the subprocess module to build next extensions with the newly built subprocess module.

Another approach is to run setup.py twice. Once to build the subprocess module, a second time to build all other modules.

@vstinner vstinner merged commit 00c77ae into python:master Mar 4, 2020
@vstinner vstinner deleted the refactor_setup_py branch March 4, 2020 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants