Mercurial > hg
comparison setup.py @ 7648:02e358a3a8a7
i18n: let Makefile generate i18n/hg.pot
The target update-pot extracts strings using pygettext and updates the
i18n/hg.pot file. The translators can then use msgmerge to merge the
new strings in hg.pot with their xx.po file when they want to.
The setup.py file now includes files under both templates/ and i18n/
as data files.
author | Martin Geisler <mg@daimi.au.dk> |
---|---|
date | Thu, 15 Jan 2009 00:10:54 +0100 |
parents | f7256cd9beff |
children | a489e3a94443 |
comparison
equal
deleted
inserted
replaced
7647:f7256cd9beff | 7648:02e358a3a8a7 |
---|---|
147 ['hgext/inotify/linux/_inotify.c'])) | 147 ['hgext/inotify/linux/_inotify.c'])) |
148 packages.extend(['hgext.inotify', 'hgext.inotify.linux']) | 148 packages.extend(['hgext.inotify', 'hgext.inotify.linux']) |
149 except ImportError: | 149 except ImportError: |
150 pass | 150 pass |
151 | 151 |
152 datafiles = [] | |
153 for root in ('templates', 'i18n'): | |
154 for dir, dirs, files in os.walk(root): | |
155 datafiles.append((os.path.join('mercurial', dir), | |
156 [os.path.join(dir, file_) for file_ in files])) | |
157 | |
152 setup(name='mercurial', | 158 setup(name='mercurial', |
153 version=version, | 159 version=version, |
154 author='Matt Mackall', | 160 author='Matt Mackall', |
155 author_email='mpm@selenic.com', | 161 author_email='mpm@selenic.com', |
156 url='http://selenic.com/mercurial', | 162 url='http://selenic.com/mercurial', |
157 description='Scalable distributed SCM', | 163 description='Scalable distributed SCM', |
158 license='GNU GPL', | 164 license='GNU GPL', |
159 scripts=scripts, | 165 scripts=scripts, |
160 packages=packages, | 166 packages=packages, |
161 ext_modules=ext_modules, | 167 ext_modules=ext_modules, |
162 data_files=[(os.path.join('mercurial', root), | 168 data_files=datafiles, |
163 [os.path.join(root, file_) for file_ in files]) | |
164 for root, dirs, files in os.walk('templates')], | |
165 cmdclass=cmdclass, | 169 cmdclass=cmdclass, |
166 options=dict(py2exe=dict(packages=['hgext', 'email']), | 170 options=dict(py2exe=dict(packages=['hgext', 'email']), |
167 bdist_mpkg=dict(zipdist=True, | 171 bdist_mpkg=dict(zipdist=True, |
168 license='COPYING', | 172 license='COPYING', |
169 readme='contrib/macosx/Readme.html', | 173 readme='contrib/macosx/Readme.html', |