You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
The text was updated successfully, but these errors were encountered:
Hey, I found a fix for this. Seems like checking the sys.exec_prefix instead of sys.base_prefix in the get_config_from_interpreter function causes the issue.
I got it working locally. @dgrunwald how can I contribute the fix?
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
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 noLIBDIR
set as well when runningpython -c "import sysconfig;print(sysconfig.get_config_var('LIBDIR')"
Is there a way to specifiy additional link search paths for rust_cpython?
The text was updated successfully, but these errors were encountered: