Skip to content

Commit bb69870

Browse files
author
Ram Rachum
committed
-
1 parent cabfa43 commit bb69870

File tree

5 files changed

+26
-17
lines changed

5 files changed

+26
-17
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ garlicsim_wx/*dist
1515
garlicsim_wx/*.egg-info
1616
garlicsim_wx/build
1717

18-
py2exe_dist
18+
win_dist
1919

2020
*/docs/_build/*
2121
*/docs/_deployed_build/*

garlicsim_wx/installer_script.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ChangesEnvironment=yes
1717
DefaultDirName={pf}\GarlicSim
1818
DefaultGroupName=GarlicSim
1919
AllowNoIcons=yes
20-
LicenseFile=../py2exe_dist/lib/garlicsim_wx/copyright.txt
20+
LicenseFile=../win_dist/lib/garlicsim_wx/copyright.txt
2121
OutputDir=..
2222
OutputBaseFilename=GarlicSim-0.6.1
2323
Compression=lzma
@@ -40,8 +40,8 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
4040

4141

4242
[Files]
43-
Source: "../py2exe_dist/GarlicSim.exe"; DestDir: "{app}"; Flags: ignoreversion
44-
Source: "../py2exe_dist/*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
43+
Source: "../win_dist/GarlicSim.exe"; DestDir: "{app}"; Flags: ignoreversion
44+
Source: "../win_dist/*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
4545
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
4646

4747
[Icons]

garlicsim_wx/py2exe_cruft/setup_extension.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_garlicsim_script_files():
213213

214214
def get_dlls_and_stuff():
215215
'''
216-
Get some miscellaneous files that need to be copied to `py2exe_dist`.
216+
Get some miscellaneous files that need to be copied to `win_dist`.
217217
218218
This returns a list of tuples, where the second item in each tuple is a
219219
list of files and the first item is the path to which these files should be
@@ -240,7 +240,7 @@ def get_dlls_and_stuff():
240240

241241
def get_all_data_files():
242242
'''
243-
Get all the data files that need to be copied to py2exe_dist.
243+
Get all the data files that need to be copied to win_dist.
244244
245245
This includes the data files for the `garlicsim`, `garlicsim_lib` and
246246
`garlicsim_wx` packages, and some miscellaneous data files.
@@ -345,9 +345,9 @@ def get_all_submodules(package_name):
345345

346346
'py2exe': {
347347

348-
# Putting distribution files in `py2exe_dist` at the root of the\
348+
# Putting distribution files in `win_dist` at the root of the\
349349
# repo:
350-
'dist_dir': '../py2exe_dist',
350+
'dist_dir': '../win_dist',
351351

352352
# We prefer to have all the files in a folder instead of a zip
353353
# file.
Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@
44
# or distributed without explicit written permission from Ram Rachum.
55

66
'''
7-
Script for packaging GarlicSim for Windows users.
7+
Script for packaging GarlicSim as a complete program to end users.
88
9-
Run without arguments to package GarlicSim using `py2exe` into the
10-
`py2exe_dist`.
9+
Currently implemented only for Windows.
1110
12-
Options:
11+
Different op:
1312
13+
--win [OR] -w
14+
Create a Windows distribution.
15+
16+
--mac [OR] -m
17+
Create a Mac distribution.
18+
19+
--deb [OR] -d
20+
Create a Debian Linux distribution.
21+
22+
1423
--installer [OR] -i
1524
After running py2exe, produce an installer using Inno Setup
1625
@@ -87,7 +96,7 @@ def assert_no_unknown_folders():
8796
folders_to_delete = []
8897
for folder in [os.path.join(garlicsim_wx_path, 'build'),
8998
os.path.join(garlicsim_wx_path, 'garlicsim_wx.egg-info'),
90-
os.path.join(repo_root_path, 'py2exe_dist')]:
99+
os.path.join(repo_root_path, 'win_dist')]:
91100
if os.path.exists(folder):
92101
folders_to_delete.append(folder)
93102

@@ -135,7 +144,7 @@ def assert_no_unknown_folders():
135144
os.chdir(old_cwd)
136145

137146
sys.stdout.write('Py2exe packaging complete. Distribution files are in the '
138-
'`py2exe_dist` folder.\n')
147+
'`win_dist` folder.\n')
139148
# #
140149
### Finished packaging with py2exe. ###########################################
141150

run_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def loadTestsFromDir(self, path):
305305

306306
testing_from_zip = '--from-zip' in argv
307307
testing_from_py2exe = ('--from-py2exe' in argv) or \
308-
((frozen is not None) and ('py2exe_dist' in our_path))
308+
((frozen is not None) and ('win_dist' in our_path))
309309
testing_from_win_installer = ('--from-installer' in argv) or \
310310
((frozen is not None) and ('run_tests.exe' in sys.executable))
311311

@@ -324,7 +324,7 @@ def loadTestsFromDir(self, path):
324324
sys.exit(temp_result)
325325

326326
sys.exit(os.system('"%s" %s' % (os.path.join(our_path,
327-
'py2exe_dist', 'run_tests.exe'), ' '.join(argv))))
327+
'win_dist', 'run_tests.exe'), ' '.join(argv))))
328328

329329
if testing_from_win_installer and not frozen:
330330
argv.remove('--from-win-installer')
@@ -336,7 +336,7 @@ def loadTestsFromDir(self, path):
336336
sys.exit(temp_result)
337337

338338
sys.exit(os.system('"%s" %s' % (os.path.join(our_path,
339-
'py2exe_dist', 'run_tests.exe'), ' '.join(argv))))
339+
'win_dist', 'run_tests.exe'), ' '.join(argv))))
340340
pass
341341

342342
if testing_from_zip:

0 commit comments

Comments
 (0)