Skip to content

Commit d118bec

Browse files
committed
Add OS specific build scripts for Linux, macOS, and Windows to application package
1 parent c28b826 commit d118bec

File tree

4 files changed

+43
-17
lines changed

4 files changed

+43
-17
lines changed

edited/pymol/startup_wrapper.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,15 @@
55
if __name__ == '__main__':
66
pymol.launch(sys.argv)
77

8-
# Coping startup_wrapper and OS specific build scripts into the application package
9-
# <editor-fold desc="Definitions">
10-
# startup_wrapper script
8+
# <editor-fold desc="Coping startup_wrapper script into the application package">
9+
# Definition
1110
tmp_edited_startup_wrapper_py_filepath = pathlib.Path(
1211
const.PROJECT_ROOT_DIR / "edited/pymol", "startup_wrapper.py"
1312
)
1413

15-
# OS specific build script
16-
tmp_os_specific_build_exe_filepath = pathlib.Path(
17-
const.OS_SPECIFIC_SETUP_BUILD_EXE
18-
)
19-
# </editor-fold>
20-
21-
# <editor-fold desc="Copy">
22-
# startup_wrapper script
14+
# Copy
2315
shutil.copy(
2416
tmp_edited_startup_wrapper_py_filepath,
2517
pathlib.Path(const.PYMOL_PACKAGE_DIR / "startup_wrapper.py")
2618
)
27-
28-
# OS specific build script
29-
shutil.copy(
30-
tmp_os_specific_build_exe_filepath,
31-
pathlib.Path(const.PYMOL_PACKAGE_DIR / "setup_build_exe.py")
32-
)
3319
# </editor-fold>

os_specific/linux/setup_build_exe.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,17 @@
5454
}
5555
],
5656
)
57+
58+
59+
# <editor-fold desc="Coping Linux build script into the application package">
60+
# Definition
61+
tmp_os_specific_build_exe_filepath = pathlib.Path(
62+
const.OS_SPECIFIC_SETUP_BUILD_EXE
63+
)
64+
65+
# Copy
66+
shutil.copy(
67+
tmp_os_specific_build_exe_filepath,
68+
pathlib.Path(const.PYMOL_PACKAGE_DIR / "setup_build_exe.py")
69+
)
70+
# </editor-fold>

os_specific/macos/setup_build_exe.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,16 @@
5959
}
6060
],
6161
)
62+
63+
# <editor-fold desc="Coping macOS build script into the application package">
64+
# Definition
65+
tmp_os_specific_build_exe_filepath = pathlib.Path(
66+
const.OS_SPECIFIC_SETUP_BUILD_EXE
67+
)
68+
69+
# Copy
70+
shutil.copy(
71+
tmp_os_specific_build_exe_filepath,
72+
pathlib.Path(const.PYMOL_PACKAGE_DIR / "setup_build_exe.py")
73+
)
74+
# </editor-fold>

os_specific/windows/setup_build_exe.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,16 @@
5353
}
5454
],
5555
)
56+
57+
# <editor-fold desc="Coping Windows build script into the application package">
58+
# Definition
59+
tmp_os_specific_build_exe_filepath = pathlib.Path(
60+
const.OS_SPECIFIC_SETUP_BUILD_EXE
61+
)
62+
63+
# Copy
64+
shutil.copy(
65+
tmp_os_specific_build_exe_filepath,
66+
pathlib.Path(const.PYMOL_PACKAGE_DIR / "setup_build_exe.py")
67+
)
68+
# </editor-fold>

0 commit comments

Comments
 (0)