Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9.3, 1.0, and 1.0.1

stable setup.py: set copyright info in version resource of exe's

Note that py2exe will only be able to parse the version and create
a version resource in the exe's if it is a plain release (e.g. 0.9.3).

For, for example, nightly builds, py2exe warns with (example):

warning: py2exe: Version Info will not be included:
could not parse version number '0.9.2+39-622cd4651185+20100201'

and does not produce any version resource at all in the exe's.

Reason: exe (and dll) files on Windows can only have four groups
of digits in the binary version resource (e.g. 999.999.999.999).

Changeset a51bc9725e12

Parent 622cd4651185

by Adrian Buehlmann

Changes to one file · Browse files at a51bc9725e12 Showing diff from parent 622cd4651185 Diff from another changeset...

Change 1 of 2 Show Entire File setup.py Stacked
 
15
16
17
 
 
18
19
20
 
112
113
114
115
116
 
 
 
 
 
 
117
118
119
120
 
 
121
122
123
 
15
16
17
18
19
20
21
22
 
114
115
116
 
 
117
118
119
120
121
122
123
124
125
 
126
127
128
129
130
@@ -15,6 +15,8 @@
 from distutils.command.build import build  from distutils.spawn import spawn, find_executable   +thgcopyright = 'Copyright (C) 2010 Steve Borho and others' +hgcopyright = 'Copyright (C) 2005-2010 Matt Mackall and others'    class build_mo(build):   @@ -112,12 +114,17 @@
  }   }   extra['console'] = [ - {'script':'contrib/hg', 'icon_resources':[(0,'icons/hg.ico')]}, - {'script':'hgtk', 'icon_resources':[(0,'icons/thg_logo.ico')]} + {'script':'contrib/hg', + 'icon_resources':[(0,'icons/hg.ico')], + 'copyright':hgcopyright}, + {'script':'hgtk', + 'icon_resources':[(0,'icons/thg_logo.ico')], + 'copyright':thgcopyright}   ]   extra['windows'] = [   {'script':'thgtaskbar.py', - 'icon_resources':[(0,'icons/thg_logo.ico')]} + 'icon_resources':[(0,'icons/thg_logo.ico')], + 'copyright':thgcopyright}   ]     return _scripts, _packages, _data_files, extra