Skip to content

Commit

Permalink
python-2.7.15: Add sip, generator for C/C++ bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed Oct 18, 2018
1 parent 8de22c3 commit 5dd2f5d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions python-2.7.15-2.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ BUILD=2
PREFIX=/pkg/$PKG-$VERSION-$BUILD
# PREFIX=/dev/shm/pkg/$PKG-$VERSION-$BUILD

XPYTHONVER=2.7
XPYTHONLIB=$PREFIX/lib/python$XPYTHONVER/site-packages

PATH=/bin:/usr/bin:/usr/sbin:/usr/local/package/bin:/usr/local/bin
export PATH

Expand Down Expand Up @@ -218,5 +221,25 @@ __CONSTRAINTS
# creates a working executable, so don't get confused.
pip install HiCExplorer --constraint $BUILDDIR/such_a_lamer --no-warn-conflicts

(
SIP_VERSION=4.19.13
SIP_SRC=https://sourceforge.net/projects/pyqt/files/sip/sip-$SIP_VERSION/sip-$SIP_VERSION.tar.gz

cd $BUILDDIR
test -e sip-$SIP_VERSION.tar.gz || wget $SIP_SRC
test -d sip-$SIP_VERSION || tar -xf sip-$SIP_VERSION.tar.gz

cd sip-$SIP_VERSION

python configure.py\
-b $PREFIX/bin \
-d $XPYTHONLIB \
-e $PREFIX/include/python$XPYTHONVER \
-v $PREFIX/share/sip

mkdir -p $PREFIX/share/sip
make; make install
)

# exit 1 # final test, inhibits 'closing' on success
exit

0 comments on commit 5dd2f5d

Please sign in to comment.