summaryrefslogtreecommitdiffstats
path: root/build/pkgs/python2/spkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'build/pkgs/python2/spkg-install')
-rwxr-xr-xbuild/pkgs/python2/spkg-install3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/pkgs/python2/spkg-install b/build/pkgs/python2/spkg-install
index 7c49dfd..5910ef5 100755
--- a/build/pkgs/python2/spkg-install
+++ b/build/pkgs/python2/spkg-install
@@ -118,13 +118,14 @@ rm -f "$SAGE_LOCAL/lib/python"
build
+PYTHON_VERSION=$("$SAGE_LOCAL/bin/python2" -c 'import sys; print("%d.%d" % sys.version_info[:2])')
+
# On OS X with XCode 4, the presence of
# $SAGE_LOCAL/lib/python2.*/config/libpython2.x.a causes problems with
# GiNaC -- see #11967. It is easiest to test the version of OS X; we
# delete this file if using OS X 10.6 or later (so `uname -r` returns
# x.y.z with x >= 10).
if [ "$UNAME" = "Darwin" ] && \
- PYTHON_VERSION=$("$SAGE_LOCAL/bin/python2" -c 'import sys; print("%d.%d" % sys.version_info[:2])')
[ `uname -r | cut '-d.' -f1` -gt 9 ]; then
rm -f "$SAGE_LOCAL/lib/python$PYTHON_VERSION/config/libpython${PYTHON_VERSION}.a"
elif [ "$UNAME" = "CYGWIN" ]; then