Skip to content

Commit cd3f51e

Browse files
committed
updated get_prefix
with system python branch from @2ashish24 things get installed somewhere else now on Mac this catches it and fix error on json from vcs
1 parent 22dfdca commit cd3f51e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CMake/cdat_modules_extra/install.py.in

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,15 @@ def get_version():
262262
return Version
263263

264264
def get_prefix():
265-
import os
265+
import os,sys
266266
try:
267-
return os.environ["UVCDAT_SETUP_PATH"]
267+
uv_setup_pth = os.environ["UVCDAT_SETUP_PATH"]
268+
if os.uname()[0] == "Darwin":
269+
uv_setup_pth = os.path.join(uv_setup_pth,
270+
"Library","Frameworks","Python.framework","Versions",
271+
"%i.%i" % (sys.version_info.major,sys.version_info.minor)
272+
)
273+
return uv_setup_pth
268274
except KeyError:
269275
raise RuntimeError("UVCDAT environment not configured. Please source the setup_runtime script.")
270276

0 commit comments

Comments
 (0)