From bee3ba73d8b1c711897eef9d7109f16654abc2fc Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Mon, 25 Oct 2010 08:47:31 +0200 Subject: [PATCH] python25, python26 plugins --- plugins/python25/uwsgiplugin.py | 12 ++++++++++++ plugins/python26/uwsgiplugin.py | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 plugins/python25/uwsgiplugin.py create mode 100644 plugins/python26/uwsgiplugin.py diff --git a/plugins/python25/uwsgiplugin.py b/plugins/python25/uwsgiplugin.py new file mode 100644 index 00000000..4fce24e4 --- /dev/null +++ b/plugins/python25/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python25' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python2.5-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python25_plugin') +LDFLAGS = os.popen('python2.5-config --ldflags').read().rstrip().split() +LIBS = os.popen('python2.5-config --libs').read().rstrip().split() diff --git a/plugins/python26/uwsgiplugin.py b/plugins/python26/uwsgiplugin.py new file mode 100644 index 00000000..1f2d9590 --- /dev/null +++ b/plugins/python26/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python26' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python2.6-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python26_plugin') +LDFLAGS = os.popen('python2.6-config --ldflags').read().rstrip().split() +LIBS = os.popen('python2.6-config --libs').read().rstrip().split()