Print this page
Remove Python 2.6

Split Close
Expand all
Collapse all
          --- old/build/python27/build.sh
          +++ new/build/python27/build.sh
↓ open down ↓ 106 lines elided ↑ open up ↑
 107  107      # Move pyconfig.h header to 32-bit-specific version.
 108  108      mv $DESTDIR/usr/include/python2.7/pyconfig.h \
 109  109          $DESTDIR/usr/include/python2.7/pyconfig-32.h
 110  110  }
 111  111  make_install64() {
 112  112      logmsg "--- make install"
 113  113      logcmd $MAKE DESTDIR=${DESTDIR} install DESTSHARED=/usr/lib/python2.7/lib-dynload || \
 114  114          logerr "--- Make install failed"
 115  115      rm $DESTDIR/usr/bin/amd64/python || logerr "--- cannot remove arch hardlink"
 116  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"
      117 +    (cd $DESTDIR/usr/bin && ln -s python2.7 python) ||  logerr "--- could not setup python softlink"
 119  118      # Copy off _sysconfigdata.py
 120  119      sed 's/^/    /g' < $DESTDIR/usr/lib/python2.7/_sysconfigdata.py > \
 121  120              /tmp/_sysconfigdata-64-$$.py
 122  121      # Generate 32/64-bit agile _sysconfigdata.py
 123  122      echo "import sys" > $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 124  123      echo "" >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 125  124      echo "if sys.maxsize > 2**32:" >> \
 126  125              $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
 127  126      cat /tmp/_sysconfigdata-64-$$.py \
 128  127              >> $DESTDIR/usr/lib/python2.7/_sysconfigdata.py
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX