Mercurial > hg > mercurial-crew-with-dirclash
comparison setup.py @ 5344:cc34be74eeec
Merge with crew-stable.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Sat, 29 Sep 2007 21:10:54 -0700 |
parents | 55860a45bbf2 |
children | 5105b119edd2 |
comparison
equal
deleted
inserted
replaced
5343:26692d08c2f9 | 5344:cc34be74eeec |
---|---|
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 # 'python setup.py install', or |
6 # './setup.py --help' for more options | 6 # 'python setup.py --help' for more options |
7 | 7 |
8 import sys | 8 import sys |
9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'): | 9 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'): |
10 raise SystemExit, "Mercurial requires python 2.3 or later." | 10 raise SystemExit, "Mercurial requires python 2.3 or later." |
11 | 11 |
12 import os | 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 import mercurial.version | 16 import mercurial.version |
17 import mercurial.demandimport | |
18 mercurial.demandimport.enable = lambda: None | |
19 | 17 |
20 extra = {} | 18 extra = {} |
21 | 19 |
22 # py2exe needs to be installed to work | 20 # py2exe needs to be installed to work |
23 try: | 21 try: |
62 description='Scalable distributed SCM', | 60 description='Scalable distributed SCM', |
63 license='GNU GPL', | 61 license='GNU GPL', |
64 packages=['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert'], | 62 packages=['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert'], |
65 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), | 63 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
66 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), | 64 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
67 Extension('mercurial.base85', ['mercurial/base85.c'])], | 65 Extension('mercurial.base85', ['mercurial/base85.c']), |
66 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c'])], | |
68 data_files=[(os.path.join('mercurial', root), | 67 data_files=[(os.path.join('mercurial', root), |
69 [os.path.join(root, file_) for file_ in files]) | 68 [os.path.join(root, file_) for file_ in files]) |
70 for root, dirs, files in os.walk('templates')], | 69 for root, dirs, files in os.walk('templates')], |
71 cmdclass=cmdclass, | 70 cmdclass=cmdclass, |
72 scripts=['hg', 'hgmerge'], | 71 scripts=['hg', 'hgmerge'], |