-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Installer script and commented out dependencies
- Loading branch information
1 parent
ebd1807
commit 5c3f3b2
Showing
13 changed files
with
151 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
""" | ||
Entry point of the aitviewer binary dist. | ||
""" | ||
|
||
from aitviewer.viewer import Viewer | ||
|
||
v = Viewer() | ||
v.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import PyInstaller.__main__ | ||
import os | ||
import shutil | ||
|
||
OUTPUT_DIR = "installer" | ||
BUILD_PATH = os.path.join(OUTPUT_DIR, "build") | ||
DIST_PATH = os.path.join(OUTPUT_DIR, "dist") | ||
|
||
os.makedirs(OUTPUT_DIR, exist_ok=True) | ||
|
||
PyInstaller.__main__.run([ | ||
"aitviewer.py", | ||
"--noconfirm", | ||
"--windowed", | ||
# "--exclude", "PyQt5", | ||
"--exclude", "matplotlib", | ||
"--exclude", "pandas", | ||
"--exclude", "cv2", | ||
"--exclude", "open3d", | ||
"--hidden-import", "moderngl_window.loaders.program.separate", | ||
"--hidden-import", "moderngl_window.loaders.program.single", | ||
"--hidden-import", "moderngl_window.loaders.program", | ||
"--hidden-import", "moderngl_window.context.pyglet", | ||
"--hidden-import", "glcontext", | ||
"--workpath", BUILD_PATH, | ||
"--distpath", DIST_PATH, | ||
"--specpath", OUTPUT_DIR, | ||
"--add-data", os.path.join("..", "aitviewer", "resources", "*") + os.pathsep + os.path.join("aitviewer", "resources"), | ||
"--add-data", os.path.join("..", "aitviewer", "shaders", "**", "*") + os.pathsep + os.path.join("aitviewer", "shaders"), | ||
"--add-data", os.path.join("..", "aitviewer", "aitvconfig.yaml") + os.pathsep + os.path.join("aitviewer"), | ||
]) | ||
|
||
root = os.path.join(DIST_PATH, "aitviewer") | ||
shutil.copytree(os.path.join("aitviewer", "resources"), os.path.join(root, "aitviewer", "resources"), dirs_exist_ok=True) | ||
shutil.copytree(os.path.join("aitviewer", "shaders"), os.path.join(root, "aitviewer", "shaders"), dirs_exist_ok=True) | ||
shutil.copy(os.path.join("aitviewer", "aitvconfig.yaml"), os.path.join(root, "aitviewer")) | ||
|
||
# moderngl.window requires a scene folder to exist. | ||
os.makedirs(os.path.join(OUTPUT_DIR, "dist", "aitviewer", "moderngl_window", "scene", "programs")) |