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.
1 parent 57779dd commit 49f11baCopy full SHA for 49f11ba
1 file changed
setup.py
@@ -45,9 +45,12 @@ def get_python_include():
45
46
def get_win_python_lib():
47
vars = sysconfig.get_config_vars()
48
- path = os.path.join(vars['prefix'], 'libs', 'python' + vars['py_version_nodot'] + '.lib')
49
- if os.path.exists(path):
50
- return path
+ for k in ['prefix', 'installed_base', 'installed_platbase']:
+ if k not in vars:
+ continue
51
+ path = os.path.join(vars[k], 'libs', 'python' + vars['py_version_nodot'] + '.lib')
52
+ if os.path.exists(path):
53
+ return path
54
return None
55
56
def prepend_variables(args, variables):
0 commit comments