Skip to content

Commit 0e80b22

Browse files
committed
Corrected a bug with tempdir creation and updated the URL for cython.
1 parent b85e6bc commit 0e80b22

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

helper_scripts/install_faststructure.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ mkdir -p ${install_dir}
2323

2424
# Define temp dir
2525
tempdir=/tmp/$USER
26+
mkdir -p $tempdir
2627

2728
# Get LDFAGS
2829
_OLD_LDFLAGS=$LDFLAGS
@@ -38,7 +39,7 @@ wget -c https://github.com/numpy/numpy/archive/v1.9.2.tar.gz -O ${tempdir}/numpy
3839
# scipy
3940
wget -c https://github.com/scipy/scipy/archive/v0.16.0b2.tar.gz -O ${tempdir}/scipy.tar.gz
4041
# cython
41-
wget -c http://cython.org/release/Cython-0.22.zip -O ${tempdir}/Cython-0.22.zip
42+
wget -c https://pypi.python.org/packages/f8/25/80f9ca7e31e2b68cc942ff1d6136588f33a7aef5e2d6abe3f2183cb9fad5/cython-0.22.tar.gz -O ${tempdir}/Cython-0.22.tar.gz
4243
# GNU scientific library
4344
wget -c http://gnu.mirror.vexxhost.com/gsl/gsl-1.16.tar.gz -O ${tempdir}/gsl-1.16.tar.gz
4445
# LAPACK (required for scipy)
@@ -59,7 +60,7 @@ mv lib/* ${install_dir}/lib
5960

6061
# cython
6162
cd ${tempdir}
62-
unzip Cython-0.22.zip
63+
tar xvfz Cython-0.22.zip
6364
cd Cython-0.22
6465
python2 setup.py install --user
6566

helper_scripts/install_structure.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ mkdir -p ${install_dir}
2323

2424
# Define temp dir
2525
tempdir=/tmp/$USER
26+
mkdir -p $tempdir
2627

2728
# Download structure sources into temp dir
2829
wget http://pritchardlab.stanford.edu/structure_software/release_versions/v2.3.4/structure_kernel_source.tar.gz -O ${tempdir}/structure_kernel_source.tar.gz

0 commit comments

Comments
 (0)