Show More
@@ -52,6 +52,11 b' STAGING_RULES = [' | |||||
52 | ('COPYING', 'Copying.txt'), |
|
52 | ('COPYING', 'Copying.txt'), | |
53 | ] |
|
53 | ] | |
54 |
|
54 | |||
|
55 | # List of paths to exclude from the staging area. | |||
|
56 | STAGING_EXCLUDES = [ | |||
|
57 | 'doc/hg-ssh.8.html', | |||
|
58 | ] | |||
|
59 | ||||
55 |
|
60 | |||
56 | def build_py2exe( |
|
61 | def build_py2exe( | |
57 | source_dir: pathlib.Path, |
|
62 | source_dir: pathlib.Path, | |
@@ -212,3 +217,10 b' def stage_install(source_dir: pathlib.Pa' | |||||
212 | files. |
|
217 | files. | |
213 | """ |
|
218 | """ | |
214 | process_install_rules(STAGING_RULES, source_dir, staging_dir) |
|
219 | process_install_rules(STAGING_RULES, source_dir, staging_dir) | |
|
220 | ||||
|
221 | # Purge any files we don't want to be there. | |||
|
222 | for f in STAGING_EXCLUDES: | |||
|
223 | p = staging_dir / f | |||
|
224 | if p.exists(): | |||
|
225 | print('removing %s' % p) | |||
|
226 | p.unlink() |
General Comments 0
You need to be logged in to leave comments.
Login now