Changeset 287:d0135cf76a2c
- Timestamp:
- 03/11/10 18:26:23 (5 months ago)
- Author:
- roberto@…
- Branch:
- default
- Message:
-
Yann is right, remove the interactive setup.py
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r274
|
r287
|
|
| 8 | 8 | from distutils.command.build_ext import build_ext |
| 9 | 9 | |
| 10 | | |
| 11 | | def is_yes(name, d): |
| 12 | | sys.stderr.write("*** Write your answer in the next line: enable %s ? y/n [ default %s ]>\n" % (name, d)) |
| 13 | | x = raw_input() |
| 14 | | if x is None or str(x) == "": |
| 15 | | x = d |
| 16 | | if x == 'y' or x == 'Y': |
| 17 | | sys.stderr.write("%s will be enabled.\n" % name); |
| 18 | | return True |
| 19 | | sys.stderr.write("%s will NOT be enabled.\n" % name); |
| 20 | | return False |
| 21 | | |
| 22 | 10 | class uWSGIBuilder(build_ext): |
| 23 | 11 | |
| 24 | 12 | def run(self): |
| 25 | | uc.XML = is_yes( "XML", 'y' ) |
| 26 | | uc.SNMP = is_yes( "SNMP", 'n' ) |
| 27 | | uc.SPOOLER = is_yes( "SPOOLER", 'y' ) |
| 28 | | uc.EMBEDDED = is_yes( "EMBEDDED uwsgi module", 'y' ) |
| 29 | | uc.UDP = is_yes( "UDP", 'y' ) |
| 30 | | uc.THREADING = is_yes( "THREADING", 'y' ) |
| 31 | | uc.SENDFILE = is_yes( "SENDFILE", 'y' ) |
| 32 | | uc.PROFILER = is_yes( "PROFILER", 'y' ) |
| 33 | | uc.NAGIOS = is_yes( "NAGIOS", 'y' ) |
| 34 | | uc.PROXY = is_yes( "PROXY", 'y' ) |
| 35 | | uc.ERLANG = is_yes( "ERLANG", 'n' ) |
| 36 | | uc.SCTP = is_yes( "experimental SCTP", 'n' ) |
| 37 | | sys.stderr.write(" *** Starting the uWSGI building process ... *** \n") |
| 38 | 13 | uc.parse_vars() |
| 39 | 14 | uc.build_uwsgi(sys.prefix + '/bin/' + uc.UWSGI_BIN_NAME) |