1 | diff -r 7a10069855c4 setup.py |
---|
2 | --- a/setup.py Thu Jul 30 17:17:53 2009 -0700 |
---|
3 | +++ b/setup.py Mon Sep 07 20:20:48 2009 -0700 |
---|
4 | @@ -51,13 +51,25 @@ object reference system, and a capabilit |
---|
5 | 'scripts': ["bin/flogtool", "bin/flappserver", "bin/flappclient"], |
---|
6 | } |
---|
7 | |
---|
8 | +have_setuptools = False |
---|
9 | try: |
---|
10 | # If setuptools is installed, then we'll add setuptools-specific |
---|
11 | - # arguments to the setup args. |
---|
12 | + # arguments to the setup args. If we're on windows, this includes |
---|
13 | + # entry_points= scripts to create the appropriate .bat files. |
---|
14 | import setuptools |
---|
15 | + have_setuptools = True |
---|
16 | except ImportError: |
---|
17 | pass |
---|
18 | -else: |
---|
19 | + |
---|
20 | +if have_setuptools: |
---|
21 | + import platform |
---|
22 | + if platform.system() == "Windows": |
---|
23 | + del setup_args["scripts"] |
---|
24 | + setup_args["entry_points"] = {"console_scripts": [ |
---|
25 | + "flogtool = foolscap.logging.cli.run_flogtool", |
---|
26 | + "flappserver = foolscap.appserver.cli:run_flappserver", |
---|
27 | + "flappclient = foolscap.appserver.client:run_flappclient", |
---|
28 | + ] } |
---|
29 | setup_args['install_requires'] = ['twisted >= 2.4.0'] |
---|
30 | setup_args['extras_require'] = { 'secure_connections' : ["pyOpenSSL"] } |
---|
31 | # note that pyOpenSSL-0.7 and recent Twisted causes unit test failures, |
---|