From 1b16be538e2d367ade48225c8c5150ebd9ed3ab9 Mon Sep 17 00:00:00 2001 From: "Shane R. Spencer" Date: Tue, 16 Jul 2019 17:50:43 -0800 Subject: Added url_for_version to python/package.py (#12040) --- var/spack/repos/builtin/packages/python/package.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-70-g09d2