Skip to content

Commit 63c37e7

Browse files
committed
Use os.path.join instead of join_path in Spack package
join_path is not directly importable from spack.util.path. Use standard Python os.path.join instead for path operations.
1 parent 6d85023 commit 63c37e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packaging/spack/package.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
#
44
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
55

6+
import os
7+
68
from spack_repo.builtin.build_systems.cmake import CMakePackage
79

810
from spack.package import *
9-
from spack.util.path import join_path
1011

1112

1213
class Mfc(CMakePackage):
@@ -106,4 +107,4 @@ def setup_build_environment(self, env):
106107

107108
# Make vendored Pyrometheus importable when chemistry is enabled
108109
if "+chemistry" in self.spec:
109-
env.prepend_path("PYTHONPATH", join_path(self.stage.source_path, "pydeps", "pyrometheus"))
110+
env.prepend_path("PYTHONPATH", os.path.join(self.stage.source_path, "pydeps", "pyrometheus"))

0 commit comments

Comments
 (0)