Skip to content

Commit

Permalink
python-3.7.6: Build hic2cool from source
Browse files Browse the repository at this point in the history
The requireiments of hic2cool would downgrade a lot of packages, so
build it from source.
  • Loading branch information
david authored and donald committed Mar 29, 2020
1 parent 3c5eade commit 5e93e04
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion python-3.7.6-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ pip3 install --prefix=$PREFIX HTSeq
pip3 install --prefix=$PREFIX keras
pip3 install --prefix=$PREFIX MotifScan # Alena 30.8.2018
pip3 install --prefix=$PREFIX MAmotif
pip3 install --prefix=$PREFIX hic2cool # Helpdesk Robert Schoepflin 17.09.2018
#pip3 install --prefix=$PREFIX hifive # only python 2.7+
pip3 install --prefix=$PREFIX snakemake
pip3 install --prefix=$PREFIX virtualenv # Donald
Expand Down Expand Up @@ -308,6 +307,41 @@ pip3 install --prefix=$PREFIX multiqc
python3 setup.py install --prefix $PREFIX
)

# hic2cool # Helpdesk Robert Schoepflin 17.09.2018
# build from source to avoid downgrading other packages (scipy, numpy)
(
HICVERS=0.8.0

. ${PREFIX}/profile
cd $BUILDDIR
test -e hic2cool-${HICVERS}.tar.gz || wget https://github.com/4dn-dcic/hic2cool/archive/${HICVERS}/hic2cool-${HICVERS}.tar.gz
test -d hic2cool-${HICVERS} || tar -xf hic2cool-${HICVERS}.tar.gz

cd hic2cool-${HICVERS}

if $( grep '==' requirements.txt >/dev/null ); then
patch -p1 <<'EOFHIC'
diff --git a/requirements.txt b/requirements.txt
index d7e701b..9d3a01c 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,5 +1,5 @@
-h5py==2.8.0
-pandas==0.24.2
-numpy==1.16.3
-scipy==1.2.1
-cooler==0.8.5
+h5py
+pandas
+numpy
+scipy
+cooler
EOFHIC
fi
pip3 install -r requirements.txt --prefix ${PREFIX}
python3 setup.py install --prefix ${PREFIX}
)

# try to load all packages, maybe we can see installation errors
python3 -c 'help("modules")' > /dev/null

Expand Down

0 comments on commit 5e93e04

Please sign in to comment.