* [gentoo-commits] gentoo-x86 commit in dev-libs/tre/files: 0.8.0-python.patch
@ 2011-03-04 17:37 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2011-03-04 17:37 UTC (permalink / raw
To: gentoo-commits
jlec 11/03/04 17:37:54
Added: 0.8.0-python.patch
Log:
Added python support, 357397, thanks Martin for the Patch
(Portage version: 2.2.0_alpha26/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-libs/tre/files/0.8.0-python.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/tre/files/0.8.0-python.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/tre/files/0.8.0-python.patch?rev=1.1&content-type=text/plain
Index: 0.8.0-python.patch
===================================================================
diff --git a/python/setup.py b/python/setup.py
index b420a4c..b1bca6b 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -10,7 +10,8 @@ import shutil
version = "0.8.0"
data_files = []
-include_dirs = ["../lib"]
+include_dirs = ["lib"]
+library_dirs = ["lib/.libs"]
libraries = ["tre"]
if sys.platform == "win32":
@@ -28,9 +29,10 @@ setup(name = "tre",
url = "http://laurikari.net/tre/",
data_files = data_files,
ext_modules = [Extension("tre",
- sources = ["tre-python.c"],
+ sources = ["python/tre-python.c"],
define_macros = [("HAVE_CONFIG_H", None)],
include_dirs = include_dirs,
+ library_dirs = library_dirs,
libraries = libraries
),
],
diff --git a/python/tre-python.c b/python/tre-python.c
index bbb24ed..2e35e3a 100644
--- a/python/tre-python.c
+++ b/python/tre-python.c
@@ -13,7 +13,7 @@
#include "Python.h"
#include "structmember.h"
-#include <tre/tre.h>
+#include <tre.h>
#define TRE_MODULE "tre"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-04 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04 17:37 [gentoo-commits] gentoo-x86 commit in dev-libs/tre/files: 0.8.0-python.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox