Skip to content

Commit 4760336

Browse files
authored
Merge pull request #2213 from pupil-labs/develop
Pupil v3.5 Release Candidate 1
2 parents b232a4c + 014ba65 commit 4760336

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1154
-449
lines changed

deployment/bundle_windows.bat

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ if not exist %release_dir% (
3232
mkdir %release_dir%
3333
)
3434

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

3943
call :Bundle capture %current_tag%
4044
call :Bundle service %current_tag%

deployment/deploy_capture/bundle.spec

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ import os.path
77
import pathlib
88
import platform
99
import sys
10+
import logging
1011

1112
import numpy
1213
import pkg_resources
1314
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
1415

16+
logger = logging.getLogger(__name__)
17+
1518
hidden_imports = []
1619
hidden_imports += collect_submodules("av")
1720

@@ -150,7 +153,7 @@ elif platform.system() == "Linux":
150153
[("pyglui/pupil_icons.ttf", ui.get_pupil_icons_font_path(), "DATA")],
151154
apriltag_libs,
152155
glfw_binaries,
153-
strip=True,
156+
strip=False,
154157
upx=True,
155158
name="pupil_capture",
156159
)
@@ -209,6 +212,22 @@ elif platform.system() == "Windows":
209212
(lib.name, str(lib), "BINARY") for lib in vc_redist_path.glob("*.dll")
210213
]
211214

215+
import site
216+
217+
delve_wheel_load_order_files = []
218+
for site_pkgs in site.getsitepackages():
219+
logger.info(f"Searching {site_pkgs} for .load-order files")
220+
site_pkgs = pathlib.Path(site_pkgs)
221+
for load_order in site_pkgs.glob("*\\.load-order-*"):
222+
delve_wheel_load_order_files.append(
223+
(
224+
str(load_order.relative_to(site_pkgs)),
225+
str(load_order),
226+
"DATA",
227+
)
228+
)
229+
logger.debug(f"Found following load-order files: {delve_wheel_load_order_files}")
230+
212231
coll = COLLECT(
213232
exe,
214233
a.binaries,
@@ -222,6 +241,7 @@ elif platform.system() == "Windows":
222241
glfw_binaries,
223242
vc_redist_libs,
224243
np_dll_list,
244+
delve_wheel_load_order_files,
225245
strip=False,
226246
upx=True,
227247
name="Pupil Capture",
-35.5 KB
Binary file not shown.
Lines changed: 38 additions & 21 deletions
Loading

deployment/deploy_player/bundle.spec

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ import os.path
77
import pathlib
88
import platform
99
import sys
10+
import logging
1011

1112
import numpy
1213
import pkg_resources
1314
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
1415

16+
logger = logging.getLogger(__name__)
17+
1518
hidden_imports = []
1619
hidden_imports += collect_submodules("av")
1720

@@ -152,7 +155,7 @@ elif platform.system() == "Linux":
152155
[("pyglui/pupil_icons.ttf", ui.get_pupil_icons_font_path(), "DATA")],
153156
apriltag_libs,
154157
glfw_binaries,
155-
strip=True,
158+
strip=False,
156159
upx=True,
157160
name="pupil_player",
158161
)
@@ -208,6 +211,22 @@ elif platform.system() == "Windows":
208211
(lib.name, str(lib), "BINARY") for lib in vc_redist_path.glob("*.dll")
209212
]
210213

214+
import site
215+
216+
delve_wheel_load_order_files = []
217+
for site_pkgs in site.getsitepackages():
218+
logger.info(f"Searching {site_pkgs} for .load-order files")
219+
site_pkgs = pathlib.Path(site_pkgs)
220+
for load_order in site_pkgs.glob("*\\.load-order-*"):
221+
delve_wheel_load_order_files.append(
222+
(
223+
str(load_order.relative_to(site_pkgs)),
224+
str(load_order),
225+
"DATA",
226+
)
227+
)
228+
logger.debug(f"Found following load-order files: {delve_wheel_load_order_files}")
229+
211230
coll = COLLECT(
212231
exe,
213232
a.binaries,
@@ -220,6 +239,7 @@ elif platform.system() == "Windows":
220239
glfw_binaries,
221240
vc_redist_libs,
222241
np_dll_list,
242+
delve_wheel_load_order_files,
223243
strip=None,
224244
upx=True,
225245
name="Pupil Player",
-283 KB
Binary file not shown.
Lines changed: 44 additions & 20 deletions
Loading

deployment/deploy_service/bundle.spec

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ import os.path
77
import pathlib
88
import platform
99
import sys
10+
import logging
1011

1112
import numpy
1213
import pkg_resources
1314
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
1415

16+
logger = logging.getLogger(__name__)
17+
1518
hidden_imports = []
1619
hidden_imports += collect_submodules("av")
1720

@@ -129,7 +132,7 @@ elif platform.system() == "Linux":
129132
[("pyglui/Roboto-Regular.ttf", ui.get_roboto_font_path(), "DATA")],
130133
[("pyglui/pupil_icons.ttf", ui.get_pupil_icons_font_path(), "DATA")],
131134
glfw_binaries,
132-
strip=True,
135+
strip=False,
133136
upx=True,
134137
name="pupil_service",
135138
)
@@ -183,6 +186,22 @@ elif platform.system() == "Windows":
183186
(lib.name, str(lib), "BINARY") for lib in vc_redist_path.glob("*.dll")
184187
]
185188

189+
import site
190+
191+
delve_wheel_load_order_files = []
192+
for site_pkgs in site.getsitepackages():
193+
logger.info(f"Searching {site_pkgs} for .load-order files")
194+
site_pkgs = pathlib.Path(site_pkgs)
195+
for load_order in site_pkgs.glob("*\\.load-order-*"):
196+
delve_wheel_load_order_files.append(
197+
(
198+
str(load_order.relative_to(site_pkgs)),
199+
str(load_order),
200+
"DATA",
201+
)
202+
)
203+
logger.debug(f"Found following load-order files: {delve_wheel_load_order_files}")
204+
186205
coll = COLLECT(
187206
exe,
188207
a.binaries,
@@ -195,6 +214,7 @@ elif platform.system() == "Windows":
195214
glfw_binaries,
196215
np_dll_list,
197216
vc_redist_libs,
217+
delve_wheel_load_order_files,
198218
strip=False,
199219
upx=True,
200220
name="Pupil Service",
-281 KB
Binary file not shown.
Lines changed: 52 additions & 21 deletions
Loading

0 commit comments

Comments
 (0)