Skip to content

Commit

Permalink
Python3.12: Annotate libraries that are currently not supported
Browse files Browse the repository at this point in the history
    * We will need to provide our own Python3.12 variant to make them work
  • Loading branch information
kayhayen committed Jul 11, 2024
1 parent f30d290 commit 5bac8fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nuitka/plugins/PluginBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
)
from nuitka.utils.SharedLibraries import locateDLL, locateDLLsInDirectory
from nuitka.utils.SlotMetaClasses import getMetaClassBase
from nuitka.utils.StaticLibraries import getSystemStaticLibPythonPath
from nuitka.utils.Utils import (
getArchitecture,
isAndroidBasedLinux,
Expand Down Expand Up @@ -187,6 +188,8 @@ def _getEvaluationContext():
# Python version string
"python_version_str": python_version_str,
"python_version_full_str": python_version_full_str,
# Technical requirements
"static_libpython": getSystemStaticLibPythonPath() is not None,
# Builtins
"True": True,
"False": False,
Expand Down
14 changes: 13 additions & 1 deletion nuitka/plugins/standard/standard.nuitka-package.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2914,6 +2914,13 @@
support_info: 'error'
when: 'version("pyobjc") < (9,)'

- module-name: 'onnx' # checksum: 5eb1b195
options:
checks:
- description: "onnx is is not supported with Python3.12 unless '--static-libpython' is used"
support_info: 'error'
when: 'python312_or_higher and not static_libpython'

- module-name: 'onnxruntime' # checksum: 37a94e21
dlls:
- from_filenames:
Expand Down Expand Up @@ -3083,7 +3090,7 @@
change_function:
'_overrides': "'(lambda method, *args, **kwargs: method)'"

- module-name: 'paddle' # checksum: 11103e47
- module-name: 'paddle' # checksum: 27d0c647
dlls:
- from_filenames:
relative_path: 'libs'
Expand All @@ -3092,6 +3099,11 @@
- 'mkl'
- 'war'
- 'common'
options:
checks:
- description: "paddle is is not supported with Python3.12 unless '--static-libpython' is used"
support_info: 'error'
when: 'python312_or_higher and not static_libpython'

- module-name: 'paddle.base.core' # checksum: a81e13c9
anti-bloat:
Expand Down

0 comments on commit 5bac8fe

Please sign in to comment.