We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f091939 + 35ee55f commit d7868dfCopy full SHA for d7868df
setuptools_rust/build.py
@@ -610,8 +610,10 @@ def _replace_vendor_with_unknown(target: str) -> Optional[str]:
610
def _prepare_build_environment() -> Dict[str, str]:
611
"""Prepares environment variables to use when executing cargo build."""
612
613
- executable = getattr(sys, "_base_executable", sys.executable)
614
- if not os.path.exists(executable):
+ base_executable = getattr(sys, "_base_executable")
+ if base_executable and os.path.exists(base_executable):
615
+ executable = os.path.realpath(base_executable)
616
+ else:
617
executable = sys.executable
618
619
# Make sure that if pythonXX-sys is used, it builds against the current
0 commit comments