8000 BUG: distutils/system_info.py fix missing subprocess import by denniszollo · Pull Request #13523 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: distutils/system_info.py fix missing subprocess import #13523

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 2 commits into from
May 19, 2019

Conversation

denniszollo
Copy link
Contributor
@denniszollo denniszollo commented May 10, 2019

I had an issue installing numpy from an enthought package called enable on MacOS high sierra and python 3.5 and python 3.6. It seems that subprocess is not imported where needed in the system_info.py file.

@charris charris changed the title distutils/system_info.py fix missing subprocess import BUG: distutils/system_info.py fix missing subprocess import May 11, 2019
@@ -2409,6 +2409,7 @@ def get_config_exe(self):
return self.default_config_exe

def get_config_output(self, config_exe, option):
import subprocess
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an import subprocess as sp above in this module, conditional on platform. Maybe there's some historical stuff I don't know about subprocess availability but I suppose we could just import at top level these days?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We import subprocess all over distutils, lets move this import to the top.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label May 15, 2019
@charris charris merged commit bdd75df into numpy:master May 19, 2019
@charris
Copy link
Member
charris commented May 19, 2019

Thanks @denniszollo .

charris pushed a commit to charris/numpy that referenced this pull request May 19, 2019
)

* distutils/system_info.py fix missing subprocess import

* Update system_info.py
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label May 19, 2019
charris added a commit that referenced this pull request May 20, 2019
BUG: distutils/system_info.py fix missing subprocess import (#13523)
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.

4 participants
0