##// END OF EJS Templates
setup: make sure Rust build its extension for the right python...
marmoute -
r53139:124c944b stable
parent child Browse files
Show More
@@ -1566,6 +1566,15 class RustExtension(Extension):
1566
1566
1567 env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir
1567 env['HOME'] = pwd.getpwuid(os.getuid()).pw_dir
1568
1568
1569 # Wildy shooting in the dark to make sure rust-cpython use the right
1570 # python
1571 if not sys.executable:
1572 msg = "Cannot determine which Python to compile Rust for"
1573 raise RustCompilationError(msg)
1574 env['PYTHON_SYS_EXECUTABLE'] = sys.executable
1575 env['PYTHONEXECUTABLE'] = sys.executable
1576 env['PYTHON'] = sys.executable
1577
1569 cargocmd = ['cargo', 'rustc', '--release']
1578 cargocmd = ['cargo', 'rustc', '--release']
1570
1579
1571 rust_features = env.get("HG_RUST_FEATURES")
1580 rust_features = env.get("HG_RUST_FEATURES")
General Comments 0
You need to be logged in to leave comments. Login now