ELPA: Add missing Python build dependency. (#22466)

Also patch the "manual_cpp" Python script with proper shebang to ensure the Spack provided Python is used instead of the system Python.
This commit is contained in:
Rémi Lacroix 2021-03-29 17:47:02 +02:00 committed by GitHub
parent 8b16728fd9
commit f9cc073be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -35,6 +35,10 @@ class Elpa(AutotoolsPackage, CudaPackage):
depends_on('lapack') depends_on('lapack')
depends_on('scalapack') depends_on('scalapack')
depends_on('libtool', type='build') depends_on('libtool', type='build')
depends_on('python@:2', type='build', when='@:2020.05.001')
depends_on('python@3:', type='build', when='@2020.11.001:')
patch('python_shebang.patch', when='@:2020.05.001')
def url_for_version(self, version): def url_for_version(self, version):
t = 'https://elpa.mpcdf.mpg.de/html/Releases/{0}/elpa-{0}.tar.gz' t = 'https://elpa.mpcdf.mpg.de/html/Releases/{0}/elpa-{0}.tar.gz'

View file

@ -0,0 +1,8 @@
--- a/manual_cpp 2021-01-27 20:21:23.897206207 +0100
+++ b/manual_cpp 2021-01-27 20:13:08.743822289 +0100
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
from __future__ import print_function
import os
import sys