-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbamboo_build.sh
executable file
·47 lines (39 loc) · 1.36 KB
/
bamboo_build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
type module >& /dev/null || . /mnt/software/Modules/current/init/bash
module purge
module load gcc
module load ccache
module load python/3
module load htslib # since pysam was built against this
#module load make
set -vex
which gcc
which g++
gcc --version
which python
python --version
export PYTHONUSERBASE=$(pwd)/LOCAL
export PATH=${PYTHONUSERBASE}/bin:${PATH}
PIP="pip --cache-dir=$bamboo_build_working_directory/.pip"
if [[ -z ${bamboo_repository_branch_name+x} ]]; then
WHEELHOUSE=/mnt/software/p/python/wheelhouse/develop
elif [[ ${bamboo_repository_branch_name} == develop ]]; then
WHEELHOUSE=/mnt/software/p/python/wheelhouse/develop
elif [[ ${bamboo_repository_branch_name} == master ]]; then
WHEELHOUSE=/mnt/software/p/python/wheelhouse/master
else
WHEELHOUSE=/mnt/software/p/python/wheelhouse/develop
fi
export WHEELHOUSE
rm -rf build
mkdir -p build/{bin,lib,include,share}
# Delete avro.
# avro-python3 would work, but avro must be deleted no matter way.
# https://stackoverflow.com/questions/40732419/how-to-read-avro-files-in-python-3-5-2
rm -rf ${PYTHONUSERBASE}/lib/python3*/site-packages/avro*
$PIP install urllib3==1.21.1
$PIP install requests==2.29.0
pip install --user --no-index --find-link "${WHEELHOUSE}" --no-compile -e '.[test]'
make test
##########################################################################
bash bamboo_wheel.sh