summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-05 15:35:18 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-05 15:35:58 -0500
commit3788cd05eb4a4c30bb659b2be6339edf94a9f8c0 (patch)
tree7ee3c45454d5cfd69fd1f39f987a2fb6014e9292
parent4d3e396ce91dd70b0c9d7f3b1e991fd8ebd0d582 (diff)
downloaddimension-3788cd05eb4a4c30bb659b2be6339edf94a9f8c0.tar.xz
Hide the presence of dimension.wrapper from wrapper types.
-rw-r--r--.gitignore2
-rw-r--r--libdimension-python/Makefile.am14
-rw-r--r--libdimension-python/dimension.pxd (renamed from libdimension-python/wrapper.pxd)0
-rw-r--r--libdimension-python/dimension.pyx (renamed from libdimension-python/wrapper.pyx)0
4 files changed, 9 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore
index 8394788..e7f3061 100644
--- a/.gitignore
+++ b/.gitignore
@@ -36,7 +36,7 @@ Doxyfile
# Files and folders created by compilation
.deps/
*.[oa]
-libdimension-python/wrapper.c
+libdimension-python/dimension.c
dimension/client.py
dimension/wrapper.so
__pycache__
diff --git a/libdimension-python/Makefile.am b/libdimension-python/Makefile.am
index 6e76591..b20169b 100644
--- a/libdimension-python/Makefile.am
+++ b/libdimension-python/Makefile.am
@@ -25,22 +25,24 @@ INCLUDES = -I$(top_srcdir)/libdimension
AM_CFLAGS = $(Python_CFLAGS)
AM_LDFLAGS = $(Python_LDFLAGS)
-wrapper.c: wrapper.pyx wrapper.pxd
+dimension.c: dimension.pyx dimension.pxd
if DEBUG
- cython --line-directives wrapper.pyx
+ cython --line-directives dimension.pyx
else
- cython wrapper.pyx
+ cython dimension.pyx
endif
+ sed -i 's/initdimension/initwrapper/g' dimension.c
+ sed -i 's/PyInit_dimension/PyInit_wrapper/g' dimension.c
pkgpyexec_LTLIBRARIES = wrapper.la
-wrapper_la_SOURCES = wrapper.c \
+wrapper_la_SOURCES = dimension.c \
platform.c \
platform.h
wrapper_la_LDFLAGS = -avoid-version -module
wrapper_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
-EXTRA_DIST = wrapper.pyx \
- wrapper.pxd
+EXTRA_DIST = dimension.pyx \
+ dimension.pxd
doc:
mkdir -p doc
diff --git a/libdimension-python/wrapper.pxd b/libdimension-python/dimension.pxd
index 94966f3..94966f3 100644
--- a/libdimension-python/wrapper.pxd
+++ b/libdimension-python/dimension.pxd
diff --git a/libdimension-python/wrapper.pyx b/libdimension-python/dimension.pyx
index 8e48a5c..8e48a5c 100644
--- a/libdimension-python/wrapper.pyx
+++ b/libdimension-python/dimension.pyx