[fprint] [PATCH] Change the Python install location
Lukas Sandström
luksan at gmail.com
Tue Jul 1 00:04:40 BST 2008
Mehmet Ali Akmanalp wrote:
> Hey Lukas,
> About your swig bindings, attached is a __init__.py file to add to the
> module dir so that python recognizes it as a package. Also, about the
> package name (the dir name in site-packages), don't you think something such
> as "pyfprint" would be a bit more appropriate than "libfprint"?
Thanks for the patch. I haven't figured out how to change the install
location with Automake, however, so I changed it so that pyfprint.py is
installed directly into site-packages/ instead.
/Lukas
pyfprint/Makefile.am | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/pyfprint/Makefile.am b/pyfprint/Makefile.am
index 51fdc48..3b566f8 100644
--- a/pyfprint/Makefile.am
+++ b/pyfprint/Makefile.am
@@ -1,8 +1,14 @@
BUILT_SOURCES = pyfprint_swig.c
SWIG_SOURCES = pyfprint_swig.i
-pkgpython_PYTHON = pyfprint_swig.py pyfprint.py
-pkgpyexec_LTLIBRARIES = _pyfprint_swig.la
+# This will install to site-packages/libfprint/. How to change this to pyfprint/?
+#pkgpython_PYTHON = pyfprint_swig.py pyfprint.py
+#pkgpyexec_LTLIBRARIES = _pyfprint_swig.la
+
+# Install directoly to site-packages for now
+python_PYTHON = pyfprint_swig.py pyfprint.py
+pyexec_LTLIBRARIES = _pyfprint_swig.la
+
_pyfprint_swig_la_SOURCES = pyfprint_swig.c $(SWIG_SOURCES)
_pyfprint_swig_la_CPPFLAGS = $(SWIG_PYTHON_CPPFLAGS) $(PYTHON_CPPFLAGS) -I$(top_srcdir)/libfprint
_pyfprint_swig_la_LDFLAGS = -module
--
1.5.4.5
More information about the fprint
mailing list