Changeset 287:d0135cf76a2c

Show
Ignore:
Timestamp:
03/11/10 18:26:23 (5 months ago)
Author:
roberto@…
Branch:
default
Message:

Yann is right, remove the interactive setup.py

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • setup.py

    r274 r287  
    88from distutils.command.build_ext import build_ext 
    99 
    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  
    2210class uWSGIBuilder(build_ext): 
    2311 
    2412        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") 
    3813                uc.parse_vars() 
    3914                uc.build_uwsgi(sys.prefix + '/bin/' + uc.UWSGI_BIN_NAME)