Skip to content

Commit

Permalink
Changing the download method
Browse files Browse the repository at this point in the history
  • Loading branch information
omodei committed Oct 29, 2019
1 parent 267106e commit 9bb98b4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ before_install:
script:
- chmod u+x ci/build_and_test.sh
- travis_wait 30 ./ci/build_and_test.sh
- ./ci/build_and_test.sh

4 changes: 4 additions & 0 deletions build_local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ echo "=====================> Activate test environment..."
source $CONDA_PREFIX/etc/profile.d/conda.sh
conda activate $ENVNAME
#source activate $ENVNAME
echo "======> getting the file..."
if ! [ -f xspec-modelsonly-v6.22.1.tar.gz ]; then
curl -LO -z xspec-modelsonly-v6.22.1.tar.gz https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft6.22.1/xspec-modelsonly-v6.22.1.tar.gz
fi

# Build package
echo "Build package..."
Expand Down
5 changes: 5 additions & 0 deletions ci/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ echo "=====================> Activate test environment..."

source activate $ENVNAME

echo "======> getting the file..."
if ! [ -f xspec-modelsonly-v6.22.1.tar.gz ]; then
curl -LO -z xspec-modelsonly-v6.22.1.tar.gz https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft6.22.1/xspec-modelsonly-v6.22.1.tar.gz
fi

# Build package
echo "Build package..."
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
Expand Down
5 changes: 4 additions & 1 deletion conda_recipe/xspec-modelsonly/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cd BUILD_DIR
echo "================="
echo $PWD
tar xf xspec-modelsonly-v6.22.1.tar.gz
cd xspec-modelsonly-v6.22.1/BUILD_DIR

# We need a custom include and library path to use the packages installed
# in the build environment
Expand Down
8 changes: 5 additions & 3 deletions conda_recipe/xspec-modelsonly/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package:
version: "6.22.1"

source:
# md5: 0abea9e1609fcdc2c3e3ada92043d17b
url: https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft6.22.1/xspec-modelsonly-v6.22.1.tar.gz
fn: xspec-modelsonly-v6.22.1.tar.gz
# md5: 0abea9e1609fcdc2c3e3ada92043d17b
# url: https://heasarc.gsfc.nasa.gov/FTP/software/lheasoft/lheasoft6.22.1/xspec-modelsonly-v6.22.1.tar.gz
path: ../../xspec-modelsonly-v6.22.1.tar.gz
#fn: xspec-modelsonly-v6.22.1.tar.gz

build:
number: 1
Expand All @@ -15,6 +16,7 @@ requirements:
- ccfits==2.5
- cfitsio==3.410
- gfortran_osx-64 # [osx]
- gcc # [linux]
- libgfortran>=3.0
#- libpng 1.6.34
#- libxcb 1.12
Expand Down

0 comments on commit 9bb98b4

Please sign in to comment.