Skip to content

Commit

Permalink
FIX installer
Browse files Browse the repository at this point in the history
  • Loading branch information
jalew188 committed Dec 26, 2023
1 parent a30aefb commit 5013903
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 9 additions & 0 deletions release/pyinstaller/alphaviz.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import pkg_resources
import importlib.metadata
import alphaviz

from PyInstaller.utils.hooks import copy_metadata
from transformers.dependency_versions_check import pkgs_to_check_at_runtime


##################### User definitions
exe_name = 'alphaviz_gui'
Expand Down Expand Up @@ -88,6 +91,12 @@ datas = [d for d in datas if ("__pycache__" not in d[0]) and (d[1] not in [".",
# if not os.path.exists(libssl_dll_path):
# datas.append((libssl_lib_path, "."))

for _pkg in ["python","accelerate"]:
if _pkg in pkgs_to_check_at_runtime:
pkgs_to_check_at_runtime.remove(_pkg)
for _pkg in pkgs_to_check_at_runtime:
datas += copy_metadata(_pkg)

a = Analysis(
[script_name],
pathex=[location],
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ def create_pip_wheel():
entry_points={
"console_scripts": package2install.__console_scripts__,
},
install_requires=requirements + [
# TODO Remove hardcoded requirement?
"pywin32==225; sys_platform=='win32'"
],
install_requires=requirements,
extras_require=extra_requirements,
python_requires=package2install.__python_version__,
)
Expand Down

0 comments on commit 5013903

Please sign in to comment.