##// END OF EJS Templates
hgweb: put map-raw in setup.py and MANIFEST.in...
mpm@selenic.com -
r218:06bc1ef2 default
parent child Browse files
Show More
@@ -1,11 +1,11 b''
1 include hg
1 include hg
2 recursive-include mercurial *.py
2 recursive-include mercurial *.py
3 include tkmerge
3 include tkmerge
4 include hgweb.cgi
4 include hgweb.cgi
5 include hgeditor rewrite-log convert-repo
5 include hgeditor rewrite-log convert-repo
6 include tests/*
6 include tests/*
7 include *.txt
7 include *.txt
8 include templates/map
8 include templates/map templates/map-*[a-z]
9 include templates/*.tmpl
9 include templates/*.tmpl
10 include doc/*
10 include doc/*
11 include README
11 include README
@@ -1,30 +1,32 b''
1 #!/usr/bin/env python
1 #!/usr/bin/env python
2
2
3 # This is the mercurial setup script.
3 # This is the mercurial setup script.
4 #
4 #
5 # './setup.py install', or
5 # './setup.py install', or
6 # './setup.py --help' for more options
6 # './setup.py --help' for more options
7
7
8 import glob
8 import glob
9 from distutils.core import setup, Extension
9 from distutils.core import setup, Extension
10 from distutils.command.install_data import install_data
10 from distutils.command.install_data import install_data
11
11
12 class install_package_data(install_data):
12 class install_package_data(install_data):
13 def finalize_options(self):
13 def finalize_options(self):
14 self.set_undefined_options('install',
14 self.set_undefined_options('install',
15 ('install_lib', 'install_dir'))
15 ('install_lib', 'install_dir'))
16 install_data.finalize_options(self)
16 install_data.finalize_options(self)
17
17
18 setup(name='mercurial',
18 setup(name='mercurial',
19 version='0.5b',
19 version='0.5b',
20 author='Matt Mackall',
20 author='Matt Mackall',
21 author_email='mpm@selenic.com',
21 author_email='mpm@selenic.com',
22 url='http://selenic.com/mercurial',
22 url='http://selenic.com/mercurial',
23 description='scalable distributed SCM',
23 description='scalable distributed SCM',
24 license='GNU GPL',
24 license='GNU GPL',
25 packages=['mercurial'],
25 packages=['mercurial'],
26 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c'])],
26 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c'])],
27 data_files=[('mercurial/templates',
27 data_files=[('mercurial/templates',
28 ['templates/map'] + glob.glob('templates/*.tmpl'))],
28 ['templates/map'] +
29 glob.glob('templates/map-*') +
30 glob.glob('templates/*.tmpl'))],
29 cmdclass = { 'install_data' : install_package_data },
31 cmdclass = { 'install_data' : install_package_data },
30 scripts=['hg'])
32 scripts=['hg'])
General Comments 0
You need to be logged in to leave comments. Login now