Skip to content

Commit 39199e6

Browse files
committed
Add pynavlib to PyInstaller hidden imports
Included 'pynavlib' in the PyInstaller hiddenimports list. On Windows ARM64, 'pynavlib' is excluded from collect_all due to lack of ARM64 wheels.
1 parent e206ad3 commit 39199e6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

conandata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ pyinstaller:
128128
- "PyQt6.sip"
129129
- "stl"
130130
- "keyrings.alt"
131+
- "pynavlib"
131132
collect_all_WINDOWS_ONLY:
132133
- "PyQt6.Qt"
133134
- "PyQt6.Qt6"

conanfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, e
548548
if self.settings.os == "Windows":
549549
hiddenimports += pyinstaller_metadata["hiddenimports_WINDOWS_ONLY"]
550550
collect_all += pyinstaller_metadata["collect_all_WINDOWS_ONLY"]
551+
552+
# Remove pynavlib on ARM64 Windows (no ARM64 wheels available)
553+
if self.settings.os == "Windows" and self.settings.arch == "armv8":
554+
collect_all = [item for item in collect_all if item != "pynavlib"]
551555

552556
# Write the actual file:
553557
with open(os.path.join(location, "UltiMaker-Cura.spec"), "w") as f:

0 commit comments

Comments
 (0)