equal
deleted
inserted
replaced
19 stage_install, |
19 stage_install, |
20 ) |
20 ) |
21 from .util import ( |
21 from .util import ( |
22 find_vc_runtime_files, |
22 find_vc_runtime_files, |
23 normalize_windows_version, |
23 normalize_windows_version, |
|
24 process_install_rules, |
24 read_version_py, |
25 read_version_py, |
25 ) |
26 ) |
26 |
27 |
27 EXTRA_PACKAGES = { |
28 EXTRA_PACKAGES = { |
28 'dulwich', |
29 'dulwich', |
29 'keyring', |
30 'keyring', |
30 'pygments', |
31 'pygments', |
31 'win32ctypes', |
32 'win32ctypes', |
32 } |
33 } |
|
34 |
|
35 EXTRA_INSTALL_RULES = [ |
|
36 ('contrib/win32/mercurial.ini', 'defaultrc/mercurial.rc'), |
|
37 ] |
33 |
38 |
34 PACKAGE_FILES_METADATA = { |
39 PACKAGE_FILES_METADATA = { |
35 'ReadMe.html': 'Flags: isreadme', |
40 'ReadMe.html': 'Flags: isreadme', |
36 } |
41 } |
37 |
42 |
81 print('purging %s' % staging_dir) |
86 print('purging %s' % staging_dir) |
82 shutil.rmtree(staging_dir) |
87 shutil.rmtree(staging_dir) |
83 |
88 |
84 # Now assemble all the packaged files into the staging directory. |
89 # Now assemble all the packaged files into the staging directory. |
85 stage_install(source_dir, staging_dir) |
90 stage_install(source_dir, staging_dir) |
|
91 |
|
92 # We also install some extra files. |
|
93 process_install_rules(EXTRA_INSTALL_RULES, source_dir, staging_dir) |
86 |
94 |
87 # hg.exe depends on VC9 runtime DLLs. Copy those into place. |
95 # hg.exe depends on VC9 runtime DLLs. Copy those into place. |
88 for f in find_vc_runtime_files(vc_x64): |
96 for f in find_vc_runtime_files(vc_x64): |
89 if f.name.endswith('.manifest'): |
97 if f.name.endswith('.manifest'): |
90 basename = 'Microsoft.VC90.CRT.manifest' |
98 basename = 'Microsoft.VC90.CRT.manifest' |