-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
When a virtualenv (created with the venv or virtualenv module, pyvenv not tested) is active, building on windows fails with fatal error LNK1181
, because the pythonXX.lib cannot be found.
In
rust-cpython/python3-sys/build.rs
Lines 367 to 368 in 387e87d
} else if cfg!(target_os = "windows") { | |
println!("cargo:rustc-link-search=native={}\\libs", exec_prefix); |
the rustc lib search path {exec_prefix}/libs
will be added, which is valid for a system interpreter, but not for virtualenvs created with the modules mentioned above. There's no LIBDIR
set as well when running python -c "import sysconfig;print(sysconfig.get_config_var('LIBDIR')"
Is there a way to specifiy additional link search paths for rust_cpython?
Metadata
Metadata
Assignees
Labels
No labels