diff options
Diffstat (limited to 'auto/modules/python')
-rw-r--r-- | auto/modules/python/conf | 57 | ||||
-rw-r--r-- | auto/modules/python/make | 24 |
2 files changed, 0 insertions, 81 deletions
diff --git a/auto/modules/python/conf b/auto/modules/python/conf deleted file mode 100644 index cb045bf9..00000000 --- a/auto/modules/python/conf +++ /dev/null @@ -1,57 +0,0 @@ - -# Copyright (C) Valentin V. Bartenev -# Copyright (C) NGINX, Inc. - - -$echo "checking for Python ..." >> $NXT_AUTOCONF_ERR - -nxt_found=no - -NXT_PYTHON_CONFIG="${NXT_PYTHON}-config" - -if /bin/sh -c "$NXT_PYTHON_CONFIG --prefix" >> $NXT_AUTOCONF_ERR 2>&1; then - - NXT_PYTHON_INCLUDE=`${NXT_PYTHON_CONFIG} --includes` - NXT_PYTHON_LIBS=`${NXT_PYTHON_CONFIG} --ldflags` - - nxt_feature="Python" - nxt_feature_name=NXT_HAVE_PYTHON - nxt_feature_run=no - nxt_feature_incs="${NXT_PYTHON_INCLUDE}" - nxt_feature_libs="${NXT_PYTHON_LIBS}" - nxt_feature_test=" - #include <Python.h> - - int main() { - Py_Initialize(); - return 0; - }" - - . auto/feature -fi - -if [ $nxt_found = no ]; then - $echo "checking for Python ..." - $echo - $echo $0: error: no Python found. - $echo - exit 1; -fi - - -NXT_PYTHON_VERSION=`${NXT_PYTHON} -c \ - 'import sys; \ - sys.stdout.write(sys.version[:3])'` - -$echo " + Python version: ${NXT_PYTHON_VERSION}" - - -NXT_PYTHON_MODULE_SRCS=" \ - src/nxt_python_wsgi.c \ -" - - -NXT_MODULES_INIT="$NXT_MODULES_INIT nxt_python_wsgi_init" -NXT_MODULES_SRCS="$NXT_MODULES_SRCS $NXT_PYTHON_MODULE_SRCS" - -NXT_LIB_AUX_LIBS="$NXT_LIB_AUX_LIBS $NXT_PYTHON_LIBS" diff --git a/auto/modules/python/make b/auto/modules/python/make deleted file mode 100644 index b405a03a..00000000 --- a/auto/modules/python/make +++ /dev/null @@ -1,24 +0,0 @@ - -# Copyright (C) Valentin V. Bartenev -# Copyright (C) NGINX, Inc. - - -$echo >> $NXT_MAKEFILE -$echo >> $NXT_MAKEFILE - - -# The python module object files. - -for nxt_src in $NXT_PYTHON_MODULE_SRCS -do - nxt_obj=`$echo $nxt_src | sed -e "s/\.c$/\.o/"` - cat << END >> $NXT_MAKEFILE - -$NXT_BUILD_DIR/$nxt_obj: $nxt_src - \$(CC) -c \$(CFLAGS) \$(NXT_INCS) $NXT_PYTHON_INCLUDE \\ - $NXT_LIB_AUX_CFLAGS \\ - -o $NXT_BUILD_DIR/$nxt_obj \\ - $nxt_src -END - -done |