Skip to content
Snippets Groups Projects
Commit bf22cc27 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

More stand-alone build fixes

parent dda86aea
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ set -x
mkdir /tmp/build
cd /tmp/build
useradd -d /home/user -m -s /bin/bash user
yum install -y git python-devel tar gcc gcc-c++ mercurial numpy
VENV_VERSION="virtualenv-1.9.1"
......@@ -13,30 +15,21 @@ rm -Rf "$VENV_VERSION"
curl -k https://pypi.python.org/packages/source/v/virtualenv/$VENV_VERSION.tar.gz | tar xfz -
VIRTUALENV=virtualenv
$VENV_VERSION/virtualenv.py --no-setuptools .env
#curl -k https://bitbucket.org/pypa/setuptools/raw/bootstrap-py24/ez_setup.py | python -
curl -k https://ssl.tiker.net/software/ez_setup.py | python -
if test "$py_version" = "2.5"; then
# pip 1.3 is the last release with Python 2.5 support
hash -r
which easy_install
easy_install 'pip==1.3.1'
PIP="pip --insecure"
else
#curl -k https://raw.github.com/pypa/pip/1.4/contrib/get-pip.py | python -
curl http://git.tiker.net/pip/blob_plain/77f959a3ce9cc506efbf3a17290d387d0a6624f5:/contrib/get-pip.py | python -
PIP="pip"
fi
$VENV_VERSION/virtualenv.py --system-site-packages --no-setuptools .env
source .env/bin/activate
curl -k https://ssl.tiker.net/software/ez_setup.py | python -
curl http://git.tiker.net/pip/blob_plain/77f959a3ce9cc506efbf3a17290d387d0a6624f5:/contrib/get-pip.py | python -
pip install pyinstaller
git clone --recursive git://github.com/inducer/loopy
cd loopy
grep -v pyopencl requirements.txt > myreq.txt
pip install -r myreq.txt
python setup.py install
chown -R user /tmp/build
./build-helpers/run-pyinstaller.sh
su user -p -c "cd /tmp/build && source .env/bin/activate && cd loopy && ./build-helpers/run-pyinstaller.sh"
......@@ -10,5 +10,7 @@ docker start -i $CNT
docker cp $CNT:/tmp/build/loopy/dist/loopy $(pwd) || true
mv loopy loopy-centos6-$(date +"%Y-%m-%d")
docker rm $CNT
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment