diff options
author | haralmha <47558670+haralmha@users.noreply.github.com> | 2021-11-11 17:37:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-11 10:37:54 -0600 |
commit | e32dd27eb784d17328c87a05353de094c4030f69 (patch) | |
tree | 6f0ed7a3f073611327aad4c9a7d93fec1f125a54 | |
parent | 9ce0abf34f6e612710db4145bfcd94e9a6871d88 (diff) | |
download | spack-e32dd27eb784d17328c87a05353de094c4030f69.tar.gz spack-e32dd27eb784d17328c87a05353de094c4030f69.tar.bz2 spack-e32dd27eb784d17328c87a05353de094c4030f69.tar.xz spack-e32dd27eb784d17328c87a05353de094c4030f69.zip |
Generalize env var PYTHON to avoid version conflicts (#27334)
* Generalize env var PYTHON to avoid version conflicts
* Use available python executable
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
-rw-r--r-- | var/spack/repos/builtin/packages/py-pythonsollya/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pythonsollya/package.py b/var/spack/repos/builtin/packages/py-pythonsollya/package.py index 02decf6b86..7e6e1f30fe 100644 --- a/var/spack/repos/builtin/packages/py-pythonsollya/package.py +++ b/var/spack/repos/builtin/packages/py-pythonsollya/package.py @@ -23,3 +23,10 @@ class PyPythonsollya(PythonPackage): depends_on('sollya', type=('build', 'link')) depends_on('py-bigfloat', type=('build', 'run')) depends_on('mpfi', type=('build', 'link')) + + @run_before('build') + def patch(self): + filter_file('PYTHON ?= python2', + 'PYTHON ?= ' + self.spec['python'].command.path, + 'GNUmakefile', + string=True) |