5
5
# './setup.py --help' for more options
7
7
from distutils.core import setup
8
from distutils.command.install_scripts import install_scripts
11
###############################
12
# Overridden distutils actions
13
###############################
15
class my_install_scripts(install_scripts):
16
""" Customized install_scripts distutils action.
17
Create bzr.bat for win32.
23
install_scripts.run(self) # standard action
25
if sys.platform == "win32":
27
scripts_dir = self.install_dir
28
script_path = os.path.join(scripts_dir, "bzr")
29
batch_str = "@%s %s %%*\n" % (sys.executable, script_path)
30
batch_path = script_path + ".bat"
31
f = file(batch_path, "w")
34
print "Created:", batch_path
36
print "ERROR: Unable to create %s: %s" % (batch_path, e)
39
########################
41
########################
45
11
author='Martin Pool',
46
12
author_email='mbp@sourcefrog.net',
47
13
url='http://www.bazaar-ng.org/',
48
14
description='Friendly distributed version control system',
49
15
license='GNU GPL v2',
56
'bzrlib.util.elementtree',
57
'bzrlib.util.effbot.org',
58
'bzrlib.util.configobj',
61
cmdclass={'install_scripts': my_install_scripts},