Mercurial > hg > mercurial-crew-with-dirclash
comparison setup.py @ 429:688d03d6997a
Pull from TAH
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pull from TAH
manifest hash: 600d04efbd836d555d11a3bd9d821d1d8c0a9790
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCuPFxywK+sNU5EO8RAjfzAKC18Zc2EOkXhy1zcpgGnyPHnFMdmgCfW5Ut
I5HSWqZMt8H0WJx1Or7ajNc=
=27D5
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Tue, 21 Jun 2005 21:04:49 -0800 |
parents | 8b067bde6679 36e644d28edf |
children | 7f5ce4bbdd7b |
comparison
equal
deleted
inserted
replaced
428:183c87d4e1a0 | 429:688d03d6997a |
---|---|
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 import mercurial.version | |
13 | |
14 # specify version string, otherwise 'hg identify' will be used: | |
15 version = '' | |
16 | |
12 class install_package_data(install_data): | 17 class install_package_data(install_data): |
13 def finalize_options(self): | 18 def finalize_options(self): |
14 self.set_undefined_options('install', | 19 self.set_undefined_options('install', |
15 ('install_lib', 'install_dir')) | 20 ('install_lib', 'install_dir')) |
16 install_data.finalize_options(self) | 21 install_data.finalize_options(self) |
17 | 22 |
18 setup(name='mercurial', | 23 try: |
19 version='0.5b', | 24 mercurial.version.remember_version(version) |
20 author='Matt Mackall', | 25 setup(name='mercurial', |
21 author_email='mpm@selenic.com', | 26 version=mercurial.version.get_version(), |
22 url='http://selenic.com/mercurial', | 27 author='Matt Mackall', |
23 description='scalable distributed SCM', | 28 author_email='mpm@selenic.com', |
24 license='GNU GPL', | 29 url='http://selenic.com/mercurial', |
25 packages=['mercurial'], | 30 description='scalable distributed SCM', |
26 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), | 31 license='GNU GPL', |
27 Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], | 32 packages=['mercurial'], |
28 data_files=[('mercurial/templates', | 33 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
29 ['templates/map'] + | 34 Extension('mercurial.bdiff', ['mercurial/bdiff.c'])], |
30 glob.glob('templates/map-*') + | 35 data_files=[('mercurial/templates', |
31 glob.glob('templates/*.tmpl'))], | 36 ['templates/map'] + |
32 cmdclass = { 'install_data' : install_package_data }, | 37 glob.glob('templates/map-*') + |
33 scripts=['hg', 'hgmerge']) | 38 glob.glob('templates/*.tmpl'))], |
39 cmdclass = { 'install_data' : install_package_data }, | |
40 scripts=['hg', 'hgmerge']) | |
41 finally: | |
42 mercurial.version.forget_version() |