This commit is contained in:
Uwe L. Korn 2013-12-17 16:22:59 -08:00
commit cf519589b5
2 changed files with 5 additions and 0 deletions

2
bin/python Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
/usr/bin/env python2 $*

3
nvm.sh
View File

@ -301,6 +301,9 @@ nvm() {
elif [ "`curl -Is "http://nodejs.org/dist/node-$VERSION.tar.gz" | \grep '200 OK'`" != '' ]; then elif [ "`curl -Is "http://nodejs.org/dist/node-$VERSION.tar.gz" | \grep '200 OK'`" != '' ]; then
tarball="http://nodejs.org/dist/node-$VERSION.tar.gz" tarball="http://nodejs.org/dist/node-$VERSION.tar.gz"
fi fi
# If python2 is available it should be used so that node compilation works on systems
# where python3 is the default python.
command -v python2 >/dev/null 2>&1 && export PATH=$NVM_DIR/bin:$PATH
if ( if (
[ ! -z $tarball ] && \ [ ! -z $tarball ] && \
mkdir -p "$tmpdir" && \ mkdir -p "$tmpdir" && \