From 1a6324e82565c2d8442e5e496149b56118426571 Mon Sep 17 00:00:00 2001 From: "roberto@fiorenzo" Date: Mon, 25 Oct 2010 08:51:52 +0200 Subject: [PATCH] python24, python27, python20, python31, python32 plugins --- plugins/lua/uwsgiplugin.py | 4 ++-- plugins/python24/uwsgiplugin.py | 12 ++++++++++++ plugins/python27/uwsgiplugin.py | 12 ++++++++++++ plugins/python30/uwsgiplugin.py | 12 ++++++++++++ plugins/python31/uwsgiplugin.py | 12 ++++++++++++ plugins/python32/uwsgiplugin.py | 12 ++++++++++++ 6 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 plugins/python24/uwsgiplugin.py create mode 100644 plugins/python27/uwsgiplugin.py create mode 100644 plugins/python30/uwsgiplugin.py create mode 100644 plugins/python31/uwsgiplugin.py create mode 100644 plugins/python32/uwsgiplugin.py diff --git a/plugins/lua/uwsgiplugin.py b/plugins/lua/uwsgiplugin.py index 91ea6926..c95190b6 100644 --- a/plugins/lua/uwsgiplugin.py +++ b/plugins/lua/uwsgiplugin.py @@ -1,7 +1,7 @@ import os,sys NAME='lua' -CFLAGS = [] +CFLAGS = ['-I/usr/include/lua5.1/'] LDFLAGS = [] GCC_LIST = ['lua_plugin'] -LIBS = ['-llua'] +LIBS = ['-llua5.1'] diff --git a/plugins/python24/uwsgiplugin.py b/plugins/python24/uwsgiplugin.py new file mode 100644 index 00000000..4ba02fac --- /dev/null +++ b/plugins/python24/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python24' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python2.4-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python24_plugin') +LDFLAGS = os.popen('python2.4-config --ldflags').read().rstrip().split() +LIBS = os.popen('python2.4-config --libs').read().rstrip().split() diff --git a/plugins/python27/uwsgiplugin.py b/plugins/python27/uwsgiplugin.py new file mode 100644 index 00000000..d175f386 --- /dev/null +++ b/plugins/python27/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python27' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python2.7-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python27_plugin') +LDFLAGS = os.popen('python2.7-config --ldflags').read().rstrip().split() +LIBS = os.popen('python2.7-config --libs').read().rstrip().split() diff --git a/plugins/python30/uwsgiplugin.py b/plugins/python30/uwsgiplugin.py new file mode 100644 index 00000000..c5d574d2 --- /dev/null +++ b/plugins/python30/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python30' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python3.0-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python30_plugin') +LDFLAGS = os.popen('python3.0-config --ldflags').read().rstrip().split() +LIBS = os.popen('python3.0-config --libs').read().rstrip().split() diff --git a/plugins/python31/uwsgiplugin.py b/plugins/python31/uwsgiplugin.py new file mode 100644 index 00000000..dcb1d00f --- /dev/null +++ b/plugins/python31/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python31' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python3.1-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python31_plugin') +LDFLAGS = os.popen('python3.1-config --ldflags').read().rstrip().split() +LIBS = os.popen('python3.1-config --libs').read().rstrip().split() diff --git a/plugins/python32/uwsgiplugin.py b/plugins/python32/uwsgiplugin.py new file mode 100644 index 00000000..cb11c98b --- /dev/null +++ b/plugins/python32/uwsgiplugin.py @@ -0,0 +1,12 @@ +import os,sys + +NAME='python32' + +GCC_LIST = map(lambda x: '../python/' + x, ['python_plugin', 'pyutils', 'pyloader', 'wsgi_handlers', 'wsgi_headers', 'wsgi_subhandler', 'gil', 'uwsgi_pymodule']) + +CFLAGS = os.popen('python3.2-config --cflags').read().rstrip().split() +CFLAGS.append('-Wno-unused-parameter') +CFLAGS.append('-Wno-strict-prototypes') +CFLAGS.append('-Dpython_plugin=python32_plugin') +LDFLAGS = os.popen('python3.2-config --ldflags').read().rstrip().split() +LIBS = os.popen('python3.2-config --libs').read().rstrip().split()