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 |
62 description='Scalable distributed SCM', |
62 description='Scalable distributed SCM', |
63 license='GNU GPL', |
63 license='GNU GPL', |
64 packages=['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert'], |
64 packages=['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert'], |
65 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
65 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']), |
66 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
66 Extension('mercurial.bdiff', ['mercurial/bdiff.c']), |
67 Extension('mercurial.base85', ['mercurial/base85.c'])], |
67 Extension('mercurial.base85', ['mercurial/base85.c']), |
|
68 Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c'])], |
68 data_files=[(os.path.join('mercurial', root), |
69 data_files=[(os.path.join('mercurial', root), |
69 [os.path.join(root, file_) for file_ in files]) |
70 [os.path.join(root, file_) for file_ in files]) |
70 for root, dirs, files in os.walk('templates')], |
71 for root, dirs, files in os.walk('templates')], |
71 cmdclass=cmdclass, |
72 cmdclass=cmdclass, |
72 scripts=['hg', 'hgmerge'], |
73 scripts=['hg', 'hgmerge'], |