comparison setup.py @ 3239:7a3edd3f7c3e

Install all files/subdirectories below templates. This is needed because styles are now in their own subdirectory.
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 03 Oct 2006 11:53:35 +0200
parents 3dba9ec89164
children 1f2c3983a6c5
comparison
equal deleted inserted replaced
3238:3dba9ec89164 3239:7a3edd3f7c3e
7 7
8 import sys 8 import sys
9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3): 9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3):
10 raise SystemExit, "Mercurial requires python 2.3 or later." 10 raise SystemExit, "Mercurial requires python 2.3 or later."
11 11
12 import glob 12 import os
13 from distutils.core import setup, Extension 13 from distutils.core import setup, Extension
14 from distutils.command.install_data import install_data 14 from distutils.command.install_data import install_data
15 15
16 # mercurial.packagescan must be the first mercurial module imported 16 # mercurial.packagescan must be the first mercurial module imported
17 import mercurial.packagescan 17 import mercurial.packagescan
88 description='Scalable distributed SCM', 88 description='Scalable distributed SCM',
89 license='GNU GPL', 89 license='GNU GPL',
90 packages=['mercurial', 'mercurial.hgweb', 'hgext'], 90 packages=['mercurial', 'mercurial.hgweb', 'hgext'],
91 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), 91 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']),
92 Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], 92 Extension('mercurial.bdiff', ['mercurial/bdiff.c'])],
93 data_files=[ 93 data_files=[(os.path.join('mercurial', root),
94 ('mercurial/templates', 94 [os.path.join(root, file_) for file_ in files])
95 ['templates/map'] + 95 for root, dirs, files in os.walk('templates')],
96 glob.glob('templates/map-*') +
97 glob.glob('templates/*.tmpl')),
98 ('mercurial/templates/static', glob.glob('templates/static/*')),
99 ],
100 cmdclass=cmdclass, 96 cmdclass=cmdclass,
101 scripts=['hg', 'hgmerge'], 97 scripts=['hg', 'hgmerge'],
102 options=dict(bdist_mpkg=dict(zipdist=True, 98 options=dict(bdist_mpkg=dict(zipdist=True,
103 license='COPYING', 99 license='COPYING',
104 readme='contrib/macosx/Readme.html', 100 readme='contrib/macosx/Readme.html',