##// END OF EJS Templates
filemerge: add an example set of global settings for common merge tools
filemerge: add an example set of global settings for common merge tools

File last commit:

r5623:f22708f5 default
r6008:33bfedc0 default
Show More
setup.py
91 lines | 2.7 KiB | text/x-python | PythonLexer
mpm@selenic.com
Add back links from file revisions to changeset revisions...
r0 #!/usr/bin/env python
mpm@selenic.com
More whitespace cleanups...
r575 #
# This is the mercurial setup script.
mpm@selenic.com
Add back links from file revisions to changeset revisions...
r0 #
Christian Ebert
setup.py not executable: change instructions at beginning of file
r4816 # 'python setup.py install', or
# 'python setup.py --help' for more options
mpm@selenic.com
Add back links from file revisions to changeset revisions...
r0
Thomas Arendsen Hein
Added check for minimal python version to setup.py
r1873 import sys
Thomas Arendsen Hein
Check for at least having a final release of python 2.3.0 in setup.py...
r3590 if not hasattr(sys, 'version_info') or sys.version_info < (2, 3, 0, 'final'):
Thomas Arendsen Hein
Added check for minimal python version to setup.py
r1873 raise SystemExit, "Mercurial requires python 2.3 or later."
Thomas Arendsen Hein
Install all files/subdirectories below templates....
r3239 import os
mpm@selenic.com
Add an O(m + nlog n) patching extension
r72 from distutils.core import setup, Extension
mpm@selenic.com
Install the templates where they can be found by hgweb.py...
r157 from distutils.command.install_data import install_data
Thomas Arendsen Hein
Support for 'hg --version'. setup.py stores version from hg repository....
r423 import mercurial.version
Matt Mackall
Fix setup.py warning
r3893 extra = {}
Volker.Kleinfeld@gmx.de
Support for the distutils extention 'py2exe' added....
r1283 # py2exe needs to be installed to work
try:
Bryan O'Sullivan
Clean up whitespace damage.
r1294 import py2exe
Volker.Kleinfeld@gmx.de
Support for the distutils extention 'py2exe' added....
r1283
Volker Kleinfeld
py2exe is not able to handle win32com.shell...
r1422 # Help py2exe to find win32com.shell
try:
import modulefinder
import win32com
for p in win32com.__path__[1:]: # Take the path to win32comext
modulefinder.AddPackagePath("win32com", p)
pn = "win32com.shell"
__import__(pn)
m = sys.modules[pn]
for p in m.__path__[1:]:
modulefinder.AddPackagePath(pn, p)
except ImportError:
pass
Matt Mackall
Fix setup.py warning
r3893 extra['console'] = ['hg']
Bryan O'Sullivan
Fix Volker's modifications to setup.py for non-Windows systems.
r1284 except ImportError:
Matt Mackall
Fix demandload bits of setup.py py2exe support
r3890 pass
Volker.Kleinfeld@gmx.de
Support for the distutils extention 'py2exe' added....
r1283
Steve Borho
win32: do not install bash hgmerge on Windows
r5623 if os.name in ['nt']:
extra['scripts'] = ['hg']
else:
extra['scripts'] = ['hg', 'hgmerge']
Thomas Arendsen Hein
Make it possible to specify a version number in setup.py....
r427 # specify version string, otherwise 'hg identify' will be used:
version = ''
mpm@selenic.com
Install the templates where they can be found by hgweb.py...
r157 class install_package_data(install_data):
def finalize_options(self):
self.set_undefined_options('install',
('install_lib', 'install_dir'))
install_data.finalize_options(self)
mpm@selenic.com
Add back links from file revisions to changeset revisions...
r0
Thomas Arendsen Hein
Don't forget version at the end of setup.py, write it only if changed....
r1977 mercurial.version.remember_version(version)
cmdclass = {'install_data': install_package_data}
Thomas Arendsen Hein
Applied coding style to setup.py
r3238
Bryan O'Sullivan
Add osutil module, containing a listdir function....
r5396 ext_modules=[
Extension('mercurial.mpatch', ['mercurial/mpatch.c']),
Extension('mercurial.bdiff', ['mercurial/bdiff.c']),
Extension('mercurial.base85', ['mercurial/base85.c']),
Extension('mercurial.diffhelpers', ['mercurial/diffhelpers.c'])
]
try:
import posix
ext_modules.append(Extension('mercurial.osutil', ['mercurial/osutil.c']))
except ImportError:
pass
Thomas Arendsen Hein
Don't forget version at the end of setup.py, write it only if changed....
r1977 setup(name='mercurial',
Thomas Arendsen Hein
Applied coding style to setup.py
r3238 version=mercurial.version.get_version(),
author='Matt Mackall',
author_email='mpm@selenic.com',
url='http://selenic.com/mercurial',
description='Scalable distributed SCM',
license='GNU GPL',
Thomas Arendsen Hein
Include convert extension in packages setup...
r4519 packages=['mercurial', 'mercurial.hgweb', 'hgext', 'hgext.convert'],
Bryan O'Sullivan
Add osutil module, containing a listdir function....
r5396 ext_modules=ext_modules,
Thomas Arendsen Hein
Install all files/subdirectories below templates....
r3239 data_files=[(os.path.join('mercurial', root),
[os.path.join(root, file_) for file_ in files])
for root, dirs, files in os.walk('templates')],
Thomas Arendsen Hein
Applied coding style to setup.py
r3238 cmdclass=cmdclass,
Lee Cantey
Fix for including hgext in Windows compiled version....
r4628 options=dict(py2exe=dict(packages=['hgext']),
bdist_mpkg=dict(zipdist=True,
Thomas Arendsen Hein
Applied coding style to setup.py
r3238 license='COPYING',
readme='contrib/macosx/Readme.html',
welcome='contrib/macosx/Welcome.html')),
Matt Mackall
Fix setup.py warning
r3893 **extra)