summaryrefslogtreecommitdiffstats
path: root/libdimension-python
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension-python')
-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
3 files changed, 8 insertions, 6 deletions
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