-
Notifications
You must be signed in to change notification settings - Fork 170
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
use pip install --user
when --as_root pip:false
, rather than pip install
#693
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #693 +/- ##
==========================================
+ Coverage 75.47% 75.63% +0.16%
==========================================
Files 32 32
Lines 2968 2996 +28
==========================================
+ Hits 2240 2266 +26
- Misses 728 730 +2
Continue to review full report at Codecov.
|
The original use case of adding this was on macos, where the system-wide install in /usr/local for brewed python shouldn't be done with root. So I don't think we should change the default. Maybe instead some syntax like |
thanks for feedback, to be clear, "brewed python" means python on
osx/homebrew?
--
◉ Kei Okada
2019年7月18日(木) 19:23 Nikolaus Demmel <[email protected]>:
… The original use case of adding this was on macos, where the system-wide
install in /usr/local for brewed python shouldn't be done with root. So I
don't think we should change the default.
Maybe instead some syntax like --installer-args "pip:--user" could be
used.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#693?email_source=notifications&email_token=AADYNXA7EA4UIFU6PKVIHWDQABADLA5CNFSM4IEWTJEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2IBEPI#issuecomment-512758333>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADYNXFLWARDD5EVBWPWUSTQABADLANCNFSM4IEWTJEA>
.
|
Yes, exactly, it means the python installed with homebrew (as opposed to the one shipped with macos). You can still do |
Oh look, there was already discussion on supporting |
…ce 2.7 and 2) to support --installer-options, we need parse argument twoce to add customized flags
@NikolausDemmel thanks for comment, I have implemented |
@k-okada in addition to needing a rebase there are quite a few changes here which I think could be split out. I'm especially interested in the optparse -> argparse commits and I think the introduction of a config file to persist options will come with its own discussion and would benefit from a breakout PR as well. Would you be willing to open either or both of those? |
Current implementation runs
pip install
command when--as-root pip:false
is set.In most cases, it does not work because it try to install the pip package under
/usr/local
withoutsudo
commandSo when we set
--as-root
, I think we should usepip install --user
command.