Skip to content

Commit

Permalink
Merge pull request #2213 from pupil-labs/develop
Browse files Browse the repository at this point in the history
Pupil v3.5 Release Candidate 1
  • Loading branch information
papr authored Nov 23, 2021
2 parents b232a4c + 014ba65 commit 4760336
Show file tree
Hide file tree
Showing 50 changed files with 1,154 additions and 449 deletions.
8 changes: 6 additions & 2 deletions deployment/bundle_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ if not exist %release_dir% (
mkdir %release_dir%
)

echo Adding pupil_external to PATH
set PATH=%PATH%;%~dp0..\pupil_external
set PATH=%PATH%;C:\Python36\Lib\site-packages\scipy\.libs
set PATH=%PATH%;C:\Python36\Lib\site-packages\zmq
setlocal enabledelayedexpansion
for /F "usebackq" %%s IN (`dir C:\Python36\Lib\site-packages\*.libs /S /B`) DO (
echo Adding %%s to PATH
set PATH=!PATH!;%%s
)

call :Bundle capture %current_tag%
call :Bundle service %current_tag%
Expand Down
22 changes: 21 additions & 1 deletion deployment/deploy_capture/bundle.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import os.path
import pathlib
import platform
import sys
import logging

import numpy
import pkg_resources
from PyInstaller.utils.hooks import collect_submodules, collect_data_files

logger = logging.getLogger(__name__)

hidden_imports = []
hidden_imports += collect_submodules("av")

Expand Down Expand Up @@ -150,7 +153,7 @@ elif platform.system() == "Linux":
[("pyglui/pupil_icons.ttf", ui.get_pupil_icons_font_path(), "DATA")],
apriltag_libs,
glfw_binaries,
strip=True,
strip=False,
upx=True,
name="pupil_capture",
)
Expand Down Expand Up @@ -209,6 +212,22 @@ elif platform.system() == "Windows":
(lib.name, str(lib), "BINARY") for lib in vc_redist_path.glob("*.dll")
]

import site

delve_wheel_load_order_files = []
for site_pkgs in site.getsitepackages():
logger.info(f"Searching {site_pkgs} for .load-order files")
site_pkgs = pathlib.Path(site_pkgs)
for load_order in site_pkgs.glob("*\\.load-order-*"):
delve_wheel_load_order_files.append(
(
str(load_order.relative_to(site_pkgs)),
str(load_order),
"DATA",
)
)
logger.debug(f"Found following load-order files: {delve_wheel_load_order_files}")

coll = COLLECT(
exe,
a.binaries,
Expand All @@ -222,6 +241,7 @@ elif platform.system() == "Windows":
glfw_binaries,
vc_redist_libs,
np_dll_list,
delve_wheel_load_order_files,
strip=False,
upx=True,
name="Pupil Capture",
Expand Down
Binary file modified deployment/deploy_capture/pupil-capture.ico
Binary file not shown.
59 changes: 38 additions & 21 deletions deployment/deploy_capture/pupil-capture.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion deployment/deploy_player/bundle.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import os.path
import pathlib
import platform
import sys
import logging

import numpy
import pkg_resources
from PyInstaller.utils.hooks import collect_submodules, collect_data_files

logger = logging.getLogger(__name__)

hidden_imports = []
hidden_imports += collect_submodules("av")

Expand Down Expand Up @@ -152,7 +155,7 @@ elif platform.system() == "Linux":
[("pyglui/pupil_icons.ttf", ui.get_pupil_icons_font_path(), "DATA")],
apriltag_libs,
glfw_binaries,
strip=True,
strip=False,
upx=True,
name="pupil_player",
)
Expand Down Expand Up @@ -208,6 +211,22 @@ elif platform.system() == "Windows":
(lib.name, str(lib), "BINARY") for lib in vc_redist_path.glob("*.dll")
]

import site

delve_wheel_load_order_files = []
for site_pkgs in site.getsitepackages():
logger.info(f"Searching {site_pkgs} for .load-order files")
site_pkgs = pathlib.Path(site_pkgs)
for load_order in site_pkgs.glob("*\\.load-order-*"):
delve_wheel_load_order_files.append(
(
str(load_order.relative_to(site_pkgs)),
str(load_order),
"DATA",
)
)
logger.debug(f"Found following load-order files: {delve_wheel_load_order_files}")

coll = COLLECT(
exe,
a.binaries,
Expand All @@ -220,6 +239,7 @@ elif platform.system() == "Windows":
glfw_binaries,
vc_redist_libs,
np_dll_list,
delve_wheel_load_order_files,
strip=None,
upx=True,
name="Pupil Player",
Expand Down
Binary file modified deployment/deploy_player/pupil-player.ico
Binary file not shown.
64 changes: 44 additions & 20 deletions deployment/deploy_player/pupil-player.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion deployment/deploy_service/bundle.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ import os.path
import pathlib
import platform
import sys
import logging

import numpy
import pkg_resources
from PyInstaller.utils.hooks import collect_submodules, collect_data_files

logger = logging.getLogger(__name__)

hidden_imports = []
hidden_imports += collect_submodules("av")

Expand Down Expand Up @@ -129,7 +132,7 @@ elif platform.system() == "Linux":
[("pyglui/Roboto-Regular.ttf", ui.get_roboto_font_path(), "DATA")],
[("pyglui/pupil_icons.ttf", ui.get_pupil_icons_font_path(), "DATA")],
glfw_binaries,
strip=True,
strip=False,
upx=True,
name="pupil_service",
)
Expand Down Expand Up @@ -183,6 +186,22 @@ elif platform.system() == "Windows":
(lib.name, str(lib), "BINARY") for lib in vc_redist_path.glob("*.dll")
]

import site

delve_wheel_load_order_files = []
for site_pkgs in site.getsitepackages():
logger.info(f"Searching {site_pkgs} for .load-order files")
site_pkgs = pathlib.Path(site_pkgs)
for load_order in site_pkgs.glob("*\\.load-order-*"):
delve_wheel_load_order_files.append(
(
str(load_order.relative_to(site_pkgs)),
str(load_order),
"DATA",
)
)
logger.debug(f"Found following load-order files: {delve_wheel_load_order_files}")

coll = COLLECT(
exe,
a.binaries,
Expand All @@ -195,6 +214,7 @@ elif platform.system() == "Windows":
glfw_binaries,
np_dll_list,
vc_redist_libs,
delve_wheel_load_order_files,
strip=False,
upx=True,
name="Pupil Service",
Expand Down
Binary file modified deployment/deploy_service/pupil-service.ico
Binary file not shown.
73 changes: 52 additions & 21 deletions deployment/deploy_service/pupil-service.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion deployment/generate_msi_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def icon_data(self) -> str:
<Package Id='*' Keywords='Installer'
Description="{package_description}" Manufacturer='{manufacturer}'
InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252' />
InstallerVersion='100' Languages='1033' Compressed='yes' SummaryCodepage='1252'
InstallScope='perMachine' />
<Media Id='1' Cabinet='Cabinet.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
<Property Id='DiskPrompt' Value="{package_description} Installer [1]" />
Expand Down
Loading

0 comments on commit 4760336

Please sign in to comment.