summaryrefslogtreecommitdiff
path: root/bindings/python
diff options
context:
space:
mode:
authorJürgen Hötzel <juergen@archlinux.org>2007-02-01 19:47:39 +0000
committerJürgen Hötzel <juergen@archlinux.org>2007-02-01 19:47:39 +0000
commite70a3e80748ffe70c32f2c91998841aa81bb03a3 (patch)
tree65b76423654ff8f22c23b6fee389c0d7fafb87e9 /bindings/python
parentcdaed9221d9614c4c43103d79f8b53b916d80d86 (diff)
downloadpacman-e70a3e80748ffe70c32f2c91998841aa81bb03a3.tar.xz
* removal of swig generated bindings
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/.cvsignore6
-rw-r--r--bindings/python/Makefile.in49
2 files changed, 0 insertions, 55 deletions
diff --git a/bindings/python/.cvsignore b/bindings/python/.cvsignore
deleted file mode 100644
index 88b6f17f..00000000
--- a/bindings/python/.cvsignore
+++ /dev/null
@@ -1,6 +0,0 @@
-Makefile
-_alpm*
-alpm.i
-alpm.h
-alpm.py*
-alpm_wrap*
diff --git a/bindings/python/Makefile.in b/bindings/python/Makefile.in
deleted file mode 100644
index 34a8d3a9..00000000
--- a/bindings/python/Makefile.in
+++ /dev/null
@@ -1,49 +0,0 @@
-top_srcdir = @top_srcdir@
-prefix = @prefix@
-
-CFLAGS = $(subst -Werror,,@CFLAGS@)
-CFLAGS += $(shell python -c 'from distutils import sysconfig; print "-I" + sysconfig.get_python_inc()')
-CFLAGS += -I$(top_srcdir)/lib/libalpm
-CFLAGS += -fno-strict-aliasing # see the swig docs
-ifeq ($(shell arch),x86_64)
-CFLAGS += -fPIC
-endif
-LDFLAGS += -L$(top_srcdir)/lib/libalpm/.libs -lalpm
-LIBDIR += $(shell python -c 'from distutils import sysconfig; print sysconfig.get_python_lib()'|sed 's|/usr|$(prefix)|')
-
-all: _alpm.so alpm.pyc
-
-_alpm.so: alpm_wrap.o
- $(CC) -shared -Wl,-soname,$@ -o $@ $^ $(LDFLAGS)
-
-alpm_wrap.o: alpm_wrap.c
- $(CC) $(CFLAGS) -c -o $@ -include alpm.h $^
-
-alpm_wrap.c:
- cp $(top_srcdir)/lib/libalpm/alpm.h ./
- cp $(top_srcdir)/bindings/alpm.i ./
- swig -python alpm.i
- # strip the unnecessary prefixes
- sed -i 's/^alpm_//;s/^PM_//' alpm.py
-
-alpm.pyc: alpm.py
- python -c "import compileall; compileall.compile_dir('.',1,'.')"
-
-alpm.py: alpm_wrap.c
-
-install: install-so install-py
-
-install-so: _alpm.so
- mkdir -p $(DESTDIR)$(LIBDIR)
- install $^ $(DESTDIR)$(LIBDIR)
-
-install-py: alpm.py alpm.pyc
- install -m644 $^ $(DESTDIR)$(LIBDIR)
-
-clean:
- rm -f _alpm* alpm{.h,.i,.py*,_wrap*}
-
-distclean: clean
- rm -f Makefile
-
-check: