diff options
author | Satish Balay <balay@mcs.anl.gov> | 2023-03-27 10:05:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-27 10:05:31 -0500 |
commit | c5b3fc6929208fdc0c308e748e048fb17b26b2d3 (patch) | |
tree | 7ea075eb2e14e65d92194cb4dbbd8fa571f15bec /var | |
parent | deca4ce107320a18d5c1701f95efb34cf0d5c2aa (diff) | |
download | spack-c5b3fc6929208fdc0c308e748e048fb17b26b2d3.tar.gz spack-c5b3fc6929208fdc0c308e748e048fb17b26b2d3.tar.bz2 spack-c5b3fc6929208fdc0c308e748e048fb17b26b2d3.tar.xz spack-c5b3fc6929208fdc0c308e748e048fb17b26b2d3.zip |
py-mpi4py: always force rebuild cython sources (#36460)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-mpi4py/package.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-mpi4py/package.py b/var/spack/repos/builtin/packages/py-mpi4py/package.py index 5e23232cf0..f0d36ac7ec 100644 --- a/var/spack/repos/builtin/packages/py-mpi4py/package.py +++ b/var/spack/repos/builtin/packages/py-mpi4py/package.py @@ -32,8 +32,13 @@ class PyMpi4py(PythonPackage): depends_on("python@2.7:2.8,3.5:", when="@3.1:") depends_on("py-setuptools@40.9:", type="build") depends_on("mpi") - depends_on("py-cython@0.27.0:", when="@master", type="build") + depends_on("py-cython@0.27.0:", type="build") @when("@3.1:") def install_options(self, spec, prefix): return ["--mpicc=%s -shared" % spec["mpi"].mpicc] + + @run_before("install") + def cythonize(self): + with working_dir(self.build_directory): + python(join_path("conf", "cythonize.py")) |