Skip to content

Commit

Permalink
Pass cmake executable to scikit-build
Browse files Browse the repository at this point in the history
  • Loading branch information
manopapad committed Dec 6, 2023
1 parent ac081ac commit 98c365b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ def install(
if legion_dir is not None and legion_src_dir is not None:
sys.exit("Cannot specify both --legion-dir and --legion-src-dir")

join = os.path.join
exists = os.path.exists
dirname = os.path.dirname
realpath = os.path.realpath

cmake_exe = realpath(cmake_exe)

print(f"Verbose build is {'on' if verbose else 'off'}")
if verbose:
print(f"networks: {networks}")
Expand Down Expand Up @@ -353,11 +360,6 @@ def install(
print(f"legion_branch: {legion_branch}")
print(f"unknown: {unknown}")

join = os.path.join
exists = os.path.exists
dirname = os.path.dirname
realpath = os.path.realpath

legate_core_dir = dirname(realpath(__file__))

pyversion, pylib_name = find_active_python_version_and_path()
Expand Down Expand Up @@ -470,6 +472,8 @@ def validate_path(path):
if not build_isolation:
pip_install_cmd += ["--no-build-isolation"]

pip_install_cmd += [f"--global-option=--cmake-executable={cmake_exe}"]

if editable:
cmd_env.update({"SETUPTOOLS_ENABLE_FEATURES": "legacy-editable"})
cmake_flags += ["-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON"]
Expand Down

0 comments on commit 98c365b

Please sign in to comment.