diff options
author | John W. Parent <45471568+johnwparent@users.noreply.github.com> | 2024-08-24 03:34:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-24 09:34:24 +0200 |
commit | 1f1021a47fe389e1a6108acb14602fe86e23b3bd (patch) | |
tree | e2934bc699e7ebbdab8c1c1f16a3252e13024427 /var | |
parent | 296e5308a7d2cde1226e179c7d695b45ff287c58 (diff) | |
download | spack-1f1021a47fe389e1a6108acb14602fe86e23b3bd.tar.gz spack-1f1021a47fe389e1a6108acb14602fe86e23b3bd.tar.bz2 spack-1f1021a47fe389e1a6108acb14602fe86e23b3bd.tar.xz spack-1f1021a47fe389e1a6108acb14602fe86e23b3bd.zip |
PythonExtension: use different bin dir on Windows (#45427)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/python-venv/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python-venv/package.py b/var/spack/repos/builtin/packages/python-venv/package.py index a814f47221..390b26c198 100644 --- a/var/spack/repos/builtin/packages/python-venv/package.py +++ b/var/spack/repos/builtin/packages/python-venv/package.py @@ -93,6 +93,9 @@ class PythonVenv(Package): path = os.path.join(dependent_spec.prefix, directory) if os.path.isdir(path): env.prepend_path("PYTHONPATH", path) + dep_bin_dir = getattr(dependent_spec.package, "bindir", None) + if dep_bin_dir and os.path.isdir(dep_bin_dir): + env.prepend_path("PATH", dep_bin_dir) def setup_dependent_package(self, module, dependent_spec): """Called before python modules' install() methods.""" |