Merge pull request #489 from Alexander-N/attribute-error
build.rs: Handle `python` being Python 2
This commit is contained in:
commit
89ba9f52ae
5
build.rs
5
build.rs
|
@ -503,7 +503,10 @@ if PYPY:
|
|||
else:
|
||||
print(sysconfig.get_config_var('Py_ENABLE_SHARED'))
|
||||
print(sysconfig.get_config_var('LDVERSION') or sysconfig.get_config_var('py_version_short'))
|
||||
print(sys.base_prefix)
|
||||
try:
|
||||
print(sys.base_prefix)
|
||||
except AttributeError:
|
||||
print(sys.exec_prefix)
|
||||
print(platform.python_implementation())
|
||||
"#;
|
||||
let out = run_python_script(interpreter, script)?;
|
||||
|
|
Loading…
Reference in a new issue