From bf868ff63647b08320951f58ec48bc3cdd8dd3e4 Mon Sep 17 00:00:00 2001 From: "roberto@fiorenzo" Date: Sat, 23 Oct 2010 08:44:22 +0200 Subject: [PATCH] build system improvements --- buildconf/core.ini | 29 +++++++++++++++++++++++++++++ plugins/python/wsgi_handlers.c | 3 --- uwsgiconfig.py | 2 ++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 buildconf/core.ini diff --git a/buildconf/core.ini b/buildconf/core.ini new file mode 100644 index 00000000..23975f2b --- /dev/null +++ b/buildconf/core.ini @@ -0,0 +1,29 @@ +[uwsgi] +xml = true +ini = true +snmp = true +sctp = false +erlang = false +spooler = false +embedded = false +udp = true +multicast = false +threading = true +sendfile = true +nagios = true +proxy = true +minterpreters = true +async = true +ugreen = false +http = true +evdis = false +ldap = true +routing = false +stackless = false +debug = false +unbit = false +xml_implementation = libxml2 +plugins = +bin_name = uwsgi +plugin_dir = . +embedded_plugins = diff --git a/plugins/python/wsgi_handlers.c b/plugins/python/wsgi_handlers.c index 7ff241d2..54802eb4 100644 --- a/plugins/python/wsgi_handlers.c +++ b/plugins/python/wsgi_handlers.c @@ -67,9 +67,6 @@ int uwsgi_request_wsgi(struct wsgi_request *wsgi_req) { int i; - size_t post_remains = wsgi_req->post_cl; - ssize_t post_chunk; - PyObject *pydictkey, *pydictvalue; char *path_info; diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 5fd712f2..a26f15d4 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -384,6 +384,8 @@ if __name__ == "__main__": bconf = 'default.ini' try: bconf = sys.argv[2] + if not bconf.endswith('.ini'): + bconf += '.ini' except: pass build_uwsgi(uConf('buildconf/%s' % bconf))