Skip to content

Commit a9709b5

Browse files
committed
Fix, detect if a Python installation doesn't have a dynamic link library
* Then using the static link library is forced.
1 parent 3a0fb1b commit a9709b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nuitka/Options.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
getSupportedPythonVersions,
5252
isDebugPython,
5353
isPythonWithGil,
54+
isStaticallyLinkedPython,
5455
python_version,
5556
python_version_str,
5657
)
@@ -1685,6 +1686,11 @@ def _shallUseStaticLibPython():
16851686
if isArchPackagePython():
16861687
return True, None
16871688

1689+
# If not dynamic link library is available, the static link library will
1690+
# have to do it.
1691+
if isStaticallyLinkedPython():
1692+
return True, None
1693+
16881694
return options.static_libpython == "yes", None
16891695

16901696

0 commit comments

Comments
 (0)