Skip to content

Commit

Permalink
Setup: fix orjson import on frozen py3.8 (ArchipelagoMW#2458)
Browse files Browse the repository at this point in the history
orjson has a .py entry point that imports `from .orjson` (from the DLL), which does not work on 3.8 if the DLL is not in the same folder as the .py. The changed import system in 3.9+ seems to allow this. Excluding it from libraries.zip will put both files into the same folder.
  • Loading branch information
black-sliver authored Nov 13, 2023
1 parent 81cc016 commit 0239578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ def find_lib(lib, arch, libc):
"excludes": ["numpy", "Cython", "PySide2", "PIL",
"pandas"],
"zip_include_packages": ["*"],
"zip_exclude_packages": ["worlds", "sc2"],
"zip_exclude_packages": ["worlds", "sc2", "orjson"], # TODO: remove orjson here once we drop py3.8 support
"include_files": [], # broken in cx 6.14.0, we use more special sauce now
"include_msvcr": False,
"replace_paths": ["*."],
Expand Down

0 comments on commit 0239578

Please sign in to comment.