diff --git a/build-helpers/.gitignore b/build-helpers/.gitignore deleted file mode 100644 index fef83014eecb14936006b90afc65595dd7d30b77..0000000000000000000000000000000000000000 --- a/build-helpers/.gitignore +++ /dev/null @@ -1 +0,0 @@ -loopy-*-20[0-9][0-9]* diff --git a/build-helpers/loopy.spec b/build-helpers/loopy.spec deleted file mode 100644 index 08c0b6efe0efd3ad419b6565fd396c2f805eeab7..0000000000000000000000000000000000000000 --- a/build-helpers/loopy.spec +++ /dev/null @@ -1,70 +0,0 @@ -# -*- mode: python -*- - -from os.path import basename, dirname, join -from glob import glob - -single_file = True - -# This makes the executable spew debug info. -debug = False - -from os.path import expanduser - -import packaging # pip install packaging to add - -a = Analysis(['../bin/loopy'], - pathex=[expanduser('~/src/loopy')], - hiddenimports=[ - "decorator", - "appdirs", - "packaging.markers", - "packaging.specifiers", - "packaging.version", - "packaging.requirements", - ], - hookspath=None, - runtime_hooks=None, - excludes=["hedge", "meshpy", "pyopencl", "PIL"] - ) - -import ply.lex -import ply.yacc - - -a.datas += [ - (join("py-src", "ply", "lex", basename(fn)), fn, "DATA") - for fn in glob(join(dirname(ply.lex.__file__), "*.py")) - ] + [ - (join("py-src", "ply", "yacc", basename(fn)), fn, "DATA") - for fn in glob(join(dirname(ply.yacc.__file__), "*.py")) - ] - -pyz = PYZ(a.pure) - -if single_file: - exe = EXE(pyz, - a.scripts, - a.binaries, - a.zipfiles, - a.datas, - name='loopy', - debug=debug, - strip=None, - upx=True, - console=True) -else: - exe = EXE(pyz, - a.scripts, - exclude_binaries=True, - name='loopy', - debug=debug, - strip=None, - upx=True, - console=True) - coll = COLLECT(exe, - a.binaries, - a.zipfiles, - a.datas, - strip=None, - upx=True, - name='loopy') diff --git a/build-helpers/make-linux-build-docker-inner-part-2.sh b/build-helpers/make-linux-build-docker-inner-part-2.sh deleted file mode 100755 index 035634b16072e0188270abd8736dab99ce31dada..0000000000000000000000000000000000000000 --- a/build-helpers/make-linux-build-docker-inner-part-2.sh +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/bash - -set -e -set -x - -VENV_VERSION="virtualenv-15.2.0" -rm -Rf "$VENV_VERSION" -curl -k https://files.pythonhosted.org/packages/b1/72/2d70c5a1de409ceb3a27ff2ec007ecdd5cc52239e7c74990e32af57affe9/$VENV_VERSION.tar.gz | tar xfz - - -$VENV_VERSION/virtualenv.py --system-site-packages --no-setuptools .env - -source .env/bin/activate - -curl -k https://bootstrap.pypa.io/ez_setup.py | python - -curl -k https://gitlab.tiker.net/inducer/pip/raw/7.0.3/contrib/get-pip.py | python - - -pip install packaging - -PYTHON_VER=$(python -c 'import sys; print(".".join(str(s) for s in sys.version_info[:2]))') -pip install git+https://github.com/pyinstaller/pyinstaller.git@413c37bec126c0bd26084813593f65128966b4b7 - -git clone --recursive git://github.com/inducer/loopy -cd loopy - -grep -v pyopencl requirements.txt > myreq.txt - -# needed for pyinstaller package to be usable -echo packaging >> myreq.txt - -pip install -r myreq.txt -python setup.py install - -chown -R user /tmp/build - -su user -p -c "cd /tmp/build && source .env/bin/activate && cd loopy && ./build-helpers/run-pyinstaller.sh" diff --git a/build-helpers/make-linux-build-docker-inner.sh b/build-helpers/make-linux-build-docker-inner.sh deleted file mode 100755 index a7f621b1ef21676898d2283d93f8a54f086e5d9d..0000000000000000000000000000000000000000 --- a/build-helpers/make-linux-build-docker-inner.sh +++ /dev/null @@ -1,15 +0,0 @@ -#! /bin/bash - -set -e -set -x - -mkdir /tmp/build -cd /tmp/build - -useradd -d /home/user -m -s /bin/bash user - -yum install -y centos-release-scl -yum install -y git python27 python27-python-devel python27-numpy tar gcc gcc-c++ mercurial libffi-devel - -scl enable python27 /mnt/make-linux-build-docker-inner-part-2.sh - diff --git a/build-helpers/make-linux-build-docker.sh b/build-helpers/make-linux-build-docker.sh deleted file mode 100755 index fb0cfb587d654698800bfdc827259691bc056fb7..0000000000000000000000000000000000000000 --- a/build-helpers/make-linux-build-docker.sh +++ /dev/null @@ -1,28 +0,0 @@ -#! /bin/bash - -# should be run in this directory (build-helpers) - -if test "$1" = "--nodate"; then - TGT_NAME=loopy-centos6 -else - TGT_NAME=loopy-centos6-$(date +"%Y-%m-%d") -fi - -echo "Generating $TGT_NAME..." - -set -e -set -x - -docker pull centos:6 - -CNT=$(docker create -t -v $(pwd):/mnt centos:6 /mnt/make-linux-build-docker-inner.sh) -echo "working in container $CNT" - -docker start -i $CNT - -docker cp $CNT:/tmp/build/loopy/dist/loopy $(pwd) || true - -mv loopy $TGT_NAME - -docker rm $CNT - diff --git a/build-helpers/run-pyinstaller.sh b/build-helpers/run-pyinstaller.sh deleted file mode 100755 index 50f9d85dccc503be2a2ccfb6c0e3d6aa28216981..0000000000000000000000000000000000000000 --- a/build-helpers/run-pyinstaller.sh +++ /dev/null @@ -1,9 +0,0 @@ -#! /bin/bash - -# run this from the loopy root directory - -rm -Rf dist build - -pyinstaller \ - --workpath=build/pyinstaller \ - build-helpers/loopy.spec diff --git a/build-helpers/upload.sh b/build-helpers/upload.sh deleted file mode 100755 index 57b8a873b9395954d76a8fd16f8ca9a261e8baa3..0000000000000000000000000000000000000000 --- a/build-helpers/upload.sh +++ /dev/null @@ -1,5 +0,0 @@ -#! /bin/bash - -set -e - -scp "$1" tiker.net:public_html/pub/loopy-binaries/