Skip to content

Commit

Permalink
fix(python): pip doesn't allow global installs anymore which is dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Aug 30, 2024
1 parent bba8d8c commit cb48f3c
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 28 deletions.
2 changes: 1 addition & 1 deletion install/darwin_amd64/icdiff
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/dash -e
$RUN pip3 install -U "git+https://github.com/jeffkaufman/icdiff.git"
$RUN pip3 install --user -U "git+https://github.com/jeffkaufman/icdiff.git"
2 changes: 1 addition & 1 deletion install/darwin_amd64/powerline-status
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/dash -e
$RUN pip3 install -U "$NAME"
$RUN pip3 install --user -U "$NAME"
$RUN /bin/dash -c "mkdir -p $HOME/.bin && ln -sf /bin/dash $HOME/.bin/$NAME"
2 changes: 1 addition & 1 deletion install/darwin_amd64/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/dash -e
$RUN pip3 install -U "$NAME"
$RUN pip3 install --user -U "$NAME"
3 changes: 0 additions & 3 deletions install/darwin_amd64/pygments

This file was deleted.

3 changes: 0 additions & 3 deletions install/darwin_amd64/virtualenvwrapper

This file was deleted.

6 changes: 1 addition & 5 deletions install/darwin_arm64/03-pyenv
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@ $RUN echo "eval \"\$(pyenv init -)\"" | sudo tee -a /etc/profile

# This saves us the time of compiling Python on codespace startup
$RUN echo "Installing global Python version"
$RUN brew "$( { [ -z "$UPGRADE" ] && echo "install"; } || echo "upgrade" )" "python@3.11"
# $RUN eval "$(pyenv init -)"
# $RUN pyenv install 3.11.6
# $RUN pyenv global 3.11.6
# $RUN python -m pip install -U pip
$RUN brew "$( { [ -z "$UPGRADE" ] && echo "install"; } || echo "upgrade" )" "python@3.12"
2 changes: 1 addition & 1 deletion install/darwin_arm64/powerline-status
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/dash -e
$RUN pip3 install -U "$NAME"
$RUN pip3 install --user -U "$NAME"
$RUN /bin/dash -c "mkdir -p $HOME/.bin && ln -sf /bin/dash $HOME/.bin/$NAME"
2 changes: 1 addition & 1 deletion install/darwin_arm64/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/dash -e
$RUN pip3 install -U "$NAME"
$RUN pip3 install --user -U "$NAME"
3 changes: 0 additions & 3 deletions install/darwin_arm64/pygments

This file was deleted.

6 changes: 1 addition & 5 deletions install/linux_amd64/03-pyenv
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@ $RUN echo "eval \"\$(pyenv init -)\"" | sudo tee -a /etc/profile

# This saves us the time of compiling Python on codespace startup
$RUN echo "Installing global Python version"
$RUN brew "$( { [ -z "$UPGRADE" ] && echo "install"; } || echo "upgrade" )" "python@3.11"
# $RUN eval "$(pyenv init -)"
# $RUN pyenv install 3.11.6
# $RUN pyenv global 3.11.6
# $RUN python -m pip install -U pip
$RUN brew "$( { [ -z "$UPGRADE" ] && echo "install"; } || echo "upgrade" )" "python@3.12"
2 changes: 1 addition & 1 deletion install/linux_amd64/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/dash -e
$RUN pip3 install -U "$NAME"
$RUN pip3 install --user -U "$NAME"
3 changes: 0 additions & 3 deletions install/linux_amd64/pygments

This file was deleted.

0 comments on commit cb48f3c

Please sign in to comment.