-
Notifications
You must be signed in to change notification settings - Fork 88
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
MRG: force use of PYTHON_EXE, PIP_CMD #315
Conversation
This is still needed since |
I think it's reasonable to always do:
|
MRG: Specify python, pip using PYTHON_EXE, PYTHON _EXE -mpip Replaces gh-315: rebased and fixed one more occurrence Related to MacPython/pandas-wheels#79
I ran into this on macOS when trying to use latest |
Yes, please, go ahead. |
7aaa4b2
to
7111e48
Compare
It turns out much of this was already merged, I think in gh-314. All that is left is to set |
ensurepip seems reasonable ...
|
c697bd4
to
a75c39e
Compare
Many of the macOS 3.5 builds are failing with
Does that have something to do with this PR? |
a75c39e
to
fff61ea
Compare
Can you replicate in a virtualenv? |
fff61ea
to
87bda58
Compare
Dropped this, it seems to break things and should be in a different PR.
I don't have access to a macOS system |
87bda58
to
e7d1c9c
Compare
It doesn't happen on Linux? |
As far as I can tell the only missing use case is setting PIP_CMD on macos when not using a virtualenv. I dropped trying to move to |
Tests are passing |
@matthew-brett any thoughts here? |
@@ -296,6 +296,7 @@ function install_mac_cpython { | |||
sudo installer -pkg $inst_path -target / | |||
local py_mm=${py_version:0:3} | |||
PYTHON_EXE=$MACPYTHON_PY_PREFIX/$py_mm/bin/python$py_mm | |||
PIP_CMD="sudo $PYTHON_EXE -m pip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this right, that it needs sudo? Won't it depend on whether this is a virtualenv or not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test in tests/test_python_install.sh checks sudo, which predates this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's odd - no? I can't see how sudo would have got into the command in the code previous to these commits, outside the case where the user is root
- can you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In an unrelated PR, it is assigned on common_utils.sh:552 in the install_pip function
. Going backward in the log it seems that comes from get_macpython_environment
which calls install_pip
which sets PIP_CMD
with sudo.
So I guess this PR is not needed and should simply be closed.
Closing. Please reopen if I am mistaken |
Experimenting with forcing PYTHON_EXE PIP_CMD