diff options
-rw-r--r-- | pywrap/Makefile.in | 51 | ||||
-rw-r--r-- | pywrap/build.py | 50 | ||||
-rw-r--r-- | pywrap/pywrap.c | 6 |
3 files changed, 0 insertions, 107 deletions
diff --git a/pywrap/Makefile.in b/pywrap/Makefile.in deleted file mode 100644 index 3f32a504..00000000 --- a/pywrap/Makefile.in +++ /dev/null @@ -1,51 +0,0 @@ -# $Id$ - -OPENSSL_LIBDIR = ${abs_top_builddir}/openssl/openssl -OPENSSL_SO_GLOB = @OPENSSL_SO_GLOB@ - -PYWRAP_LIBDIR = @PYWRAP_LIBDIR@ -PYWRAP_LIBS = ${OPENSSL_LIBDIR}/${OPENSSL_SO_GLOB} - -CFLAGS = @CFLAGS@ -LDFLAGS = @LDFLAGS@ -L${abs_top_builddir}/openssl/openssl -Wl,-rpath,${PYWRAP_LIBDIR} -LIBS = -lssl -lcrypto - -PYTHON = @PYTHON@ -INSTALL = @INSTALL@ -m 555 - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -datarootdir = @datarootdir@ -datadir = @datadir@ -localstatedir = @localstatedir@ -sharedstatedir = @sharedstatedir@ -sysconfdir = @sysconfdir@ -bindir = @bindir@ -sbindir = @sbindir@ -libexecdir = @libexecdir@ -libdir = @libdir@ - -abs_top_srcdir = @abs_top_srcdir@ -abs_top_builddir = @abs_top_builddir@ - -all: pywrap - -pywrap: pywrap.c - AC_CFLAGS='${CFLAGS}' AC_LDFLAGS='${LDFLAGS}' AC_LIBS='${LIBS}' ${PYTHON} build.py - -clean: - rm -f *.o pywrap - -test: - @true - -distclean: clean - rm -f Makefile - -install: all - ${INSTALL} -d ${DESTDIR}${sbindir} ${DESTDIR}${PYWRAP_LIBDIR} - ${INSTALL} pywrap ${DESTDIR}${sbindir} - ${INSTALL} ${PYWRAP_LIBS} ${DESTDIR}${PYWRAP_LIBDIR} - -deinstall uninstall: - rm -rf ${DESTDIR}${sbindir}/pywrap ${DESTDIR}${PYWRAP_LIBDIR} diff --git a/pywrap/build.py b/pywrap/build.py deleted file mode 100644 index 286b034a..00000000 --- a/pywrap/build.py +++ /dev/null @@ -1,50 +0,0 @@ -""" -Hack to build our Python wrapper. Basic problem here is that we need -a bunch of arguments that were given to ./configure when Python itself -was built, and there appears to be no real consistancy about how -different unix-like distributions use the various parameters, so even -the standard python-config script is not smart enough to figure out -which arguments we need on every platform. Feh. - -This script is an attempt to pull the relevant information out of the -distutils.sysconfig module. If I understood distutils better, I could -probably figure out some way to wrap this whole thing up nicely in the -distutils framework; if you understand how to do this, please do so -and send me the code. - -As it is, this is a minimal hack to get the job done, and probably a -bit fragile. Much of the code is taken from python-config. If -there's any real documentation on how to do this sort of thing, I have -not found it yet. YMMV. Beware Of Dog. - -$Id$ -""" - -import os, subprocess, sys - -from distutils.sysconfig import (get_config_var as getvar, - get_python_inc as getinc) - -cmd = getvar("CC").split() - -cmd.append("-o") -cmd.append("pywrap") -cmd.append("pywrap.c") - -for var in ("AC_CFLAGS", "AC_LDFLAGS", "AC_LIBS"): - cmd.extend(os.environ[var].split()) - -cmd.append("-I%s" % getinc(plat_specific = False)) -cmd.append("-I%s" % getinc(plat_specific = True)) - -if not getvar("Py_ENABLE_SHARED"): - cmd.append("-L%s" % getvar("LIBPL")) - -for var in ("CFLAGS", "LIBS", "SYSLIBS", "LDFLAGS"): - cmd.extend(getvar(var).split()) - -cmd.append("-lpython%s" % getvar("VERSION")) - -print " ".join(cmd) - -sys.exit(subprocess.call(cmd)) diff --git a/pywrap/pywrap.c b/pywrap/pywrap.c deleted file mode 100644 index 10638721..00000000 --- a/pywrap/pywrap.c +++ /dev/null @@ -1,6 +0,0 @@ -#include <Python.h> - -int main(int argc, char **argv) -{ - return Py_Main(argc, argv); -} |