Skip to content

Commit 72baa59

Browse files
committed
Unlink aliases before creating anew
This caused some subtle issues, where aliases (e.g., "3.4") pointed to one that was available when the package was created, but was unavailable at the run time.
1 parent feab69a commit 72baa59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/compile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sudo env PYTHON_BUILD_ROOT=/opt/pyenv/plugins/python-build \
2525
/opt/pyenv/plugins/python-build/bin/python-build $VERSION $INSTALL_DEST/$VERSION
2626

2727
if [[ $ALIAS ]] ; then
28-
sudo ln -s $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS
28+
sudo ln -sf $INSTALL_DEST/$VERSION $INSTALL_DEST/$ALIAS
2929
fi
3030

3131
# set up virtualenv arguments
@@ -44,7 +44,7 @@ virtualenv --distribute --python=$INSTALL_DEST/$VERSION/bin/python \
4444
$HOME/virtualenv/$VIRTENV_VERSION
4545

4646
if [[ $ALIAS ]] ; then
47-
ln -s $HOME/virtualenv/$VIRTENV_VERSION $HOME/virtualenv/python$ALIAS
47+
ln -sf $HOME/virtualenv/$VIRTENV_VERSION $HOME/virtualenv/python$ALIAS
4848
fi
4949

5050
$HOME/virtualenv/$VIRTENV_VERSION/bin/python -c "import sys; assert sys.maxunicode > 65535"

0 commit comments

Comments
 (0)