Skip to content

Commit

Permalink
update entry point configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Sep 30, 2024
1 parent 77f861d commit a46663a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions packaging/libresvip-web.spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import shellingham
from PyInstaller.utils.hooks import collect_data_files, collect_entry_point
from PyInstaller.utils.misc import is_win

from libresvip.core.constants import pkg_dir

with contextlib.suppress(Exception):
if (
("conda" in sys.version or "Continuum" in sys.version)
Expand Down Expand Up @@ -53,7 +51,7 @@ a = Analysis(
"xsdata_pydantic.hooks.class_type",
"zstandard",
],
hookspath=[pkg_dir / "__pyinstaller"],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
Expand Down Expand Up @@ -120,7 +118,7 @@ exe = EXE(
strip=False,
upx=False,
console=False,
disable_windowed_traceback=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
Expand Down
6 changes: 2 additions & 4 deletions packaging/libresvip.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import shellingham
from PyInstaller.utils.hooks import collect_data_files, collect_entry_point
from PyInstaller.utils.misc import is_win

from libresvip.core.constants import pkg_dir

with contextlib.suppress(Exception):
if (
("conda" in sys.version or "Continuum" in sys.version)
Expand Down Expand Up @@ -55,7 +53,7 @@ if not (is_win and platform.machine() == "ARM64"):
"xsdata_pydantic.hooks.class_type",
"zstandard",
],
hookspath=[pkg_dir / "__pyinstaller"],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
Expand Down Expand Up @@ -140,7 +138,7 @@ gui_a = Analysis(
"xsdata_pydantic.hooks.class_type",
"zstandard",
],
hookspath=[pkg_dir / "__pyinstaller"],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ libresvip-web = "libresvip.web.__main__:main"
[project.gui-scripts]
libresvip-gui = "libresvip.gui.__main__:run"

[project.entry-points.pyinstaller40]
hook-dirs = "libresvip.__pyinstaller:get_hook_dirs"

[tool.pdm]
version = { source = "file", path = "libresvip/__init__.py" }

Expand Down

0 comments on commit a46663a

Please sign in to comment.