Skip to content

Commit

Permalink
Unique paths in Python_ROOT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Dec 7, 2024
1 parent b6a6d6b commit 55bd1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py_build_cmake/commands/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_native_python_prefixes(self) -> str:
Path(sys.base_exec_prefix).as_posix(),
Path(sys.base_prefix).as_posix(),
]
return ";".join(pfxs)
return ";".join(dict.fromkeys(pfxs)) # remove duplicates, preserve order

def get_native_python_abi_tuple(self):
cmake_version = self.cmake_settings.minimum_required
Expand Down

0 comments on commit 55bd1d4

Please sign in to comment.