Created
February 5, 2019 18:36
-
-
Save tacaswell/a701178de7fcc0c213c0adb0abd57dff to your computer and use it in GitHub Desktop.
make bleeding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/bash | |
set -e | |
TARGET_ENV=bleeding | |
OSPATH=~/source/other_source/ | |
PSPATH=~/source/p | |
DSPATH=~/source/bnl | |
pull_build () { | |
git pull || echo failed | |
git clean -xfd | |
pip install -ve . | |
} | |
master_build () { | |
git checkout master | |
git pull | |
git clean -xfd | |
pip install -v . | |
} | |
sip_build () { | |
hg purge | |
hg pull | |
hg update tip | |
python build.py prepare | |
python configure.py --sip-module=PyQt5.sip | |
make | |
make install | |
} | |
pushd $OSPATH/cpython/ | |
git pull | |
git clean -xfd | |
./configure | |
make -j 9 | |
./python -m venv --copies --clear ~/.virtualenvs/$TARGET_ENV | |
chmod u+x python-config | |
ln -s python-config ~/.virtualenvs/$TARGET_ENV/bin | |
ln -s pyconfig.h Include | |
popd | |
source ~/.virtualenvs/$TARGET_ENV/bin/activate | |
pip install --upgrade pip | |
echo $PATH | |
pushd $OSPATH/cython | |
master_build | |
popd | |
pushd $OSPATH/numpy | |
master_build | |
popd | |
pushd $OSPATH/scipy | |
master_build | |
popd | |
# this seems to fix an issue in pip? | |
pip install pkgconfig six | |
pushd $DSPATH/h5py | |
pull_build | |
popd | |
pushd $OSPATH/pandas/ | |
pull_build | |
popd | |
pushd $OSPATH/dask | |
master_build | |
popd | |
pushd $PSPATH/matplotlib | |
pull_build | |
pip install -r $(find ./ -name doc-requirements.txt) | |
pip install -r requirements/testing/travis_all.txt | |
pip install -r requirements/testing/travis36.txt | |
pip uninstall flake8-per-file-ignores | |
popd | |
pushd $OSPATH/pexpect | |
master_build | |
popd | |
pushd $OSPATH/parso | |
master_build | |
popd | |
pushd $OSPATH/jedi | |
master_build | |
popd | |
pushd $OSPATH/IPython/ | |
master_build | |
popd | |
pushd $OSPATH/toolz/ | |
master_build | |
popd | |
pushd $OSPATH/pyyaml | |
master_build | |
popd | |
pushd $OSPATH/pywt | |
pull_build | |
popd | |
pushd $OSPATH/scikit-image | |
master_build | |
popd | |
pushd $OSPATH/sip | |
sip_build | |
popd | |
pip install pyqt5 --no-deps | |
pip install elpy pytest pytest-xdist zmq curio asv pytest_benchmark elpy trio coverage qtpy twine | |
pushd $DSPATH | |
pushd caproto | |
pull_build | |
popd | |
pushd ophyd | |
pull_build | |
popd | |
pushd bluesky | |
pull_build | |
popd | |
pushd databroker | |
pull_build | |
popd | |
pushd nslsii | |
pull_build | |
popd | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment