Skip to content

Commit f306012

Browse files
fix: file extension on windows with cp36 and cp37 (#3919)
1 parent bdc7dd8 commit f306012

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/FindPythonLibsNew.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,11 @@ if USE_SYSCONFIG:
127127
scheme = 'posix_prefix'
128128
print(s.get_path('platinclude', scheme))
129129
print(s.get_path('platlib'))
130+
print(s.get_config_var('EXT_SUFFIX') or s.get_config_var('SO'))
130131
else:
131132
print(ds.get_python_inc(plat_specific=True));
132133
print(ds.get_python_lib(plat_specific=True));
133-
print(s.get_config_var('EXT_SUFFIX') or s.get_config_var('SO'));
134+
print(ds.get_config_var('EXT_SUFFIX') or ds.get_config_var('SO'));
134135
print(hasattr(sys, 'gettotalrefcount')+0);
135136
print(struct.calcsize('@P'));
136137
print(s.get_config_var('LDVERSION') or s.get_config_var('VERSION'));

0 commit comments

Comments
 (0)