summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhegner <benedikt.hegner@cern.ch>2016-12-02 22:56:00 +0100
committerbecker33 <becker33@llnl.gov>2016-12-02 13:56:00 -0800
commit2f4661313256310cf1b98a760515bd7d1523af20 (patch)
tree6257183483e3c7bc6e0a7c6b04de694f6b955930
parentcc92b9a3a2005ef494bf7b1249ffd64e68f81217 (diff)
downloadspack-2f4661313256310cf1b98a760515bd7d1523af20.tar.gz
spack-2f4661313256310cf1b98a760515bd7d1523af20.tar.bz2
spack-2f4661313256310cf1b98a760515bd7d1523af20.tar.xz
spack-2f4661313256310cf1b98a760515bd7d1523af20.zip
Fix download URL and dependencies for py-pypar (#2430)
* fix download URL and dependencies for py-pypar * use url_for_version in py-pypar
-rw-r--r--var/spack/repos/builtin/packages/py-pypar/package.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-pypar/package.py b/var/spack/repos/builtin/packages/py-pypar/package.py
index 90d1f957b6..ffbc232353 100644
--- a/var/spack/repos/builtin/packages/py-pypar/package.py
+++ b/var/spack/repos/builtin/packages/py-pypar/package.py
@@ -30,13 +30,17 @@ class PyPypar(Package):
written in Python to run in parallel on multiple processors and
communicate using MPI."""
homepage = "http://code.google.com/p/pypar/"
- url = "https://pypar.googlecode.com/files/pypar-2.1.5_108.tgz"
+ url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pypar/pypar-2.1.5_108.tgz"
+
+ version('2.1.5_108', '7a1f28327d2a3b679f9455c843d850b8')
- version('2.1.5_108', '7a1f28327d2a3b679f9455c843d850b8',
- url='https://pypar.googlecode.com/files/pypar-2.1.5_108.tgz')
extends('python')
depends_on('mpi')
+ depends_on('py-numpy')
def install(self, spec, prefix):
with working_dir('source'):
setup_py('install', '--prefix=%s' % prefix)
+
+ def url_for_version(self, version):
+ return "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/pypar/pypar-%s.tgz" % version