Print this page
Remove Python 2.6


  97 }
  98 
  99 make_install32() {
 100     make_install
 101     rm $DESTDIR/usr/bin/i386/python || logerr "--- cannot remove arch hardlink"
 102     # Copy off _sysconfigdata.py
 103     sed 's/^/    /g' < $DESTDIR/usr/lib/python2.7/_sysconfigdata.py > \
 104             /tmp/_sysconfigdata-32-$$.py
 105 
 106 
 107     # Move pyconfig.h header to 32-bit-specific version.
 108     mv $DESTDIR/usr/include/python2.7/pyconfig.h \
 109         $DESTDIR/usr/include/python2.7/pyconfig-32.h
 110 }
 111 make_install64() {
 112     logmsg "--- make install"
 113     logcmd $MAKE DESTDIR=${DESTDIR} install DESTSHARED=/usr/lib/python2.7/lib-dynload || \
 114         logerr "--- Make install failed"
 115     rm $DESTDIR/usr/bin/amd64/python || logerr "--- cannot remove arch hardlink"
 116     rm $DESTDIR/usr/lib/python2.7/config/libpython2.7.a || logerr "--- cannot remove static lib"
 117     # XXX KEBE SAYS Uncomment me eventually...
 118     # (cd $DESTDIR/usr/bin && ln -s python2.7 python) ||  logerr "--- could not setup python softlink"
 119     # Copy off _sysconfigdata.py
 120     sed 's/^/    /g' < $DESTDIR/usr/lib/python2.7/_sysconfigdata.py > \
 121             /tmp/_sysconfigdata-64-$$.py
 122     # Generate 32/64-bit agile _sysconfigdata.py
 123     echo "import sys" > $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 124     echo "" >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 125     echo "if sys.maxsize > 2**32:" >> \
 126             $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 127     cat /tmp/_sysconfigdata-64-$$.py \
 128             >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 129     echo "else:" >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 130     cat /tmp/_sysconfigdata-32-$$.py \
 131             >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 132     # Clean up the 32/64 stragglers.
 133     rm -f /tmp/_sysconfigdata-*-$$.py
 134     # Postprocessing steps in either IPS or the omnios-build system create
 135     # the .pyo and .pyc files.
 136 
 137     # Move pyconfig.h header to 64-bit-specific version.
 138     mv $DESTDIR/usr/include/python2.7/pyconfig.h \


  97 }
  98 
  99 make_install32() {
 100     make_install
 101     rm $DESTDIR/usr/bin/i386/python || logerr "--- cannot remove arch hardlink"
 102     # Copy off _sysconfigdata.py
 103     sed 's/^/    /g' < $DESTDIR/usr/lib/python2.7/_sysconfigdata.py > \
 104             /tmp/_sysconfigdata-32-$$.py
 105 
 106 
 107     # Move pyconfig.h header to 32-bit-specific version.
 108     mv $DESTDIR/usr/include/python2.7/pyconfig.h \
 109         $DESTDIR/usr/include/python2.7/pyconfig-32.h
 110 }
 111 make_install64() {
 112     logmsg "--- make install"
 113     logcmd $MAKE DESTDIR=${DESTDIR} install DESTSHARED=/usr/lib/python2.7/lib-dynload || \
 114         logerr "--- Make install failed"
 115     rm $DESTDIR/usr/bin/amd64/python || logerr "--- cannot remove arch hardlink"
 116     rm $DESTDIR/usr/lib/python2.7/config/libpython2.7.a || logerr "--- cannot remove static lib"
 117     (cd $DESTDIR/usr/bin && ln -s python2.7 python) ||  logerr "--- could not setup python softlink"

 118     # Copy off _sysconfigdata.py
 119     sed 's/^/    /g' < $DESTDIR/usr/lib/python2.7/_sysconfigdata.py > \
 120             /tmp/_sysconfigdata-64-$$.py
 121     # Generate 32/64-bit agile _sysconfigdata.py
 122     echo "import sys" > $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 123     echo "" >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 124     echo "if sys.maxsize > 2**32:" >> \
 125             $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 126     cat /tmp/_sysconfigdata-64-$$.py \
 127             >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 128     echo "else:" >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 129     cat /tmp/_sysconfigdata-32-$$.py \
 130             >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 131     # Clean up the 32/64 stragglers.
 132     rm -f /tmp/_sysconfigdata-*-$$.py
 133     # Postprocessing steps in either IPS or the omnios-build system create
 134     # the .pyo and .pyc files.
 135 
 136     # Move pyconfig.h header to 64-bit-specific version.
 137     mv $DESTDIR/usr/include/python2.7/pyconfig.h \