Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
bundlers/linux: Use Python 3.5 to build Tulip AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Jan 28, 2019

Verified

This commit was signed with the committer’s verified signature.
anlambert Antoine Lambert
1 parent bf12493 commit 7498ab0
Showing 1 changed file with 11 additions and 29 deletions.
40 changes: 11 additions & 29 deletions bundlers/linux/tulip_appimage_centos6_build.sh
Original file line number Diff line number Diff line change
@@ -20,50 +20,32 @@ yum -y install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
yum -y install zlib-devel qhull-devel
yum -y install freetype-devel libpng-devel libjpeg-devel glew-devel

# needed for generating the appimage
# needed for generating the AppImage
yum -y install fuse fuse-libs

if [ "$(uname -p)" = "x86_64" ]; then

# install python 2.7 and the corresponding sphinx version
yum install -y centos-release-scl
yum install -y python27-python-devel python27-python-sphinx
# setup python
source /opt/rh/python27/enable
# set USR_LIB (needed to set CMAKE_PREFIX_PATH)
USR_LIB=/usr/lib64

if [ "$(uname -p)" = "x86_64" ]; then
USR_LIB=/usr/lib64
else

# download, compile and install Python 2.7 because there is
# no 32 bit version of centos-release-scl
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel expat-devel
wget http://python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz
tar xf Python-2.7.14.tar.xz
cd Python-2.7.14
./configure --prefix=/usr --enable-unicode=ucs4 --enable-shared --enable-optimizations CC="ccache /opt/rh/devtoolset-2/root/usr/bin/gcc" CXX="ccache /opt/rh/devtoolset-2/root/usr/bin/g++"
make -j4 && make altinstall

# install pip in order to grab the latest sphinx version
wget https://bootstrap.pypa.io/get-pip.py
python2.7 get-pip.py
pip2.7 install sphinx

# set USR_LIB (needed to set CMAKE_PREFIX_PATH)
USR_LIB=/usr/lib

USR_LIB=/usr/lib
fi

# install qt5
yum install -y qt5-qtbase-devel qt5-qtwebkit-devel

# install Python 3.5 from the IUS Community Project
wget https://centos6.iuscommunity.org/ius-release.rpm
rpm -Uvh ius-release*rpm
yum -y install python35u-devel python35u-pip
pip3.5 install sphinx

# build and install tulip
if [ -d /tulip/build ]; then
rm -rf /tulip/build
fi
mkdir /tulip/build
cd /tulip/build
cmake -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_PREFIX_PATH=$USR_LIB/qt5 -DTULIP_USE_CCACHE=ON -DTULIP_BUILD_FOR_APPIMAGE=ON ..
cmake -DCMAKE_C_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/g++ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_PREFIX_PATH=$USR_LIB/qt5 -DPYTHON_EXECUTABLE=/usr/bin/python3.5 -DTULIP_USE_CCACHE=ON -DTULIP_BUILD_FOR_APPIMAGE=ON ..
make -j4 install

# build a bundle dir suitable for AppImageKit

0 comments on commit 7498ab0

Please sign in to comment.