##// END OF EJS Templates
Merge with crew
Merge with crew

File last commit:

r4519:5a9e767c default
r4627:d4e4d0f4 merge default
Show More
setup.py
77 lines | 2.5 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 #
# './setup.py install', or
# './setup.py --help' for more options
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
Disable demandloading in setup.py
r3892 import mercurial.demandimport
mercurial.demandimport.enable = lambda: None
Thomas Arendsen Hein
Support for 'hg --version'. setup.py stores version from hg repository....
r423
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
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
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'],
Thomas Arendsen Hein
Applied coding style to setup.py
r3238 ext_modules=[Extension('mercurial.mpatch', ['mercurial/mpatch.c']),
Brendan Cully
Add a base85 codec
r3283 Extension('mercurial.bdiff', ['mercurial/bdiff.c']),
Extension('mercurial.base85', ['mercurial/base85.c'])],
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,
scripts=['hg', 'hgmerge'],
options=dict(bdist_mpkg=dict(zipdist=True,
license='COPYING',
readme='contrib/macosx/Readme.html',
welcome='contrib/macosx/Welcome.html')),
Matt Mackall
Fix setup.py warning
r3893 **extra)