commit b7c431ecb2a46da536e60239ad567facbf069f18
parent 6abdf53b9880cb5992400697c2176ef11ebdbe24
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 8 May 2005 08:36:39 +0000
update
Diffstat:
3 files changed, 28 insertions(+), 3 deletions(-)
diff --git a/src/main/Makefile.am b/src/main/Makefile.am
@@ -55,5 +55,5 @@ extract_SOURCES = \
getopt1.c
install-exec-local:
- python libextractor_python_setup.py build
- python libextractor_python_setup.py install --prefix=$(PYTHON_PREFIX)
+ python libextractor_python_setup.py $(libdir) build
+ python libextractor_python_setup.py $(libdir) install --prefix=$(PYTHON_PREFIX)
diff --git a/src/main/libextractor_python3.c b/src/main/libextractor_python3.c
@@ -1,3 +1,24 @@
+/*
+ This file is part of libextractor.
+ (C) 2004, 2005 Vidyut Samanta and Christian Grothoff
+
+ libextractor is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 2, or (at your
+ option) any later version.
+
+ libextractor is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with libextractor; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+ */
+
+
/* libextractor_python.c
---------------------
diff --git a/src/main/libextractor_python_setup.py b/src/main/libextractor_python_setup.py
@@ -1,9 +1,13 @@
from distutils.core import Extension, setup
+import sys
+
+path=sys.argv[0]
+sys.argv = sys.argv[1:]
cmod = Extension("extractor",["libextractor_python3.c"],
libraries=["extractor"],
include_dirs=["../include"],
- library_dirs=["/home/heiko/usr/lib"])
+ library_dirs=[path])
setup(name="Extractor",
version="0.5.0",