summaryrefslogtreecommitdiff
blob: f290e0bf5783d5e10199426bbd6a6b8363a047ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"