equal
deleted
inserted
replaced
17 from distutils.ccompiler import new_compiler |
17 from distutils.ccompiler import new_compiler |
18 |
18 |
19 import mercurial.version |
19 import mercurial.version |
20 |
20 |
21 extra = {} |
21 extra = {} |
|
22 scripts = ['hg'] |
|
23 if os.name == 'nt': |
|
24 scripts.append('contrib/win32/hg.bat') |
22 |
25 |
23 # simplified version of distutils.ccompiler.CCompiler.has_function |
26 # simplified version of distutils.ccompiler.CCompiler.has_function |
24 # that actually removes its temporary files. |
27 # that actually removes its temporary files. |
25 def has_function(cc, funcname): |
28 def has_function(cc, funcname): |
26 tmpdir = tempfile.mkdtemp(prefix='hg-install-') |
29 tmpdir = tempfile.mkdtemp(prefix='hg-install-') |
117 author='Matt Mackall', |
120 author='Matt Mackall', |
118 author_email='mpm@selenic.com', |
121 author_email='mpm@selenic.com', |
119 url='http://selenic.com/mercurial', |
122 url='http://selenic.com/mercurial', |
120 description='Scalable distributed SCM', |
123 description='Scalable distributed SCM', |
121 license='GNU GPL', |
124 license='GNU GPL', |
122 scripts=['hg'], |
125 scripts=scripts, |
123 packages=packages, |
126 packages=packages, |
124 ext_modules=ext_modules, |
127 ext_modules=ext_modules, |
125 data_files=[(os.path.join('mercurial', root), |
128 data_files=[(os.path.join('mercurial', root), |
126 [os.path.join(root, file_) for file_ in files]) |
129 [os.path.join(root, file_) for file_ in files]) |
127 for root, dirs, files in os.walk('templates')], |
130 for root, dirs, files in os.walk('templates')], |