summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShane R. Spencer <shane@bogomip.com>2019-07-16 17:50:43 -0800
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-16 20:50:43 -0500
commit1b16be538e2d367ade48225c8c5150ebd9ed3ab9 (patch)
tree4560c05839be9fc71e90884a6604dc45028225f5
parent267d07e4b99df6a0e4a6a9bfcc669fd79aaa4d10 (diff)
downloadspack-1b16be538e2d367ade48225c8c5150ebd9ed3ab9.tar.gz
spack-1b16be538e2d367ade48225c8c5150ebd9ed3ab9.tar.bz2
spack-1b16be538e2d367ade48225c8c5150ebd9ed3ab9.tar.xz
spack-1b16be538e2d367ade48225c8c5150ebd9ed3ab9.zip
Added url_for_version to python/package.py (#12040)
-rw-r--r--var/spack/repos/builtin/packages/python/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index 347e89eacf..49a601aa75 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -151,6 +151,10 @@ class Python(AutotoolsPackage):
# An in-source build with --enable-optimizations fails for python@3.X
build_directory = 'spack-build'
+ def url_for_version(self, version):
+ url = "https://www.python.org/ftp/python/{0}/Python-{1}.tgz"
+ return url.format(re.split('[a-z]', str(version))[0], version)
+
@when('@2.7:2.8,3.4:')
def patch(self):
# NOTE: Python's default installation procedure makes it possible for a