blob: 79ffff04c345bf1c269e8137881512b30eaf4f5e (
plain) (
blame)
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
|
$FreeBSD$
--- setup.py.orig Tue May 22 19:02:54 2001
+++ setup.py Mon May 28 19:58:15 2001
@@ -86,6 +86,16 @@
#----------------------------------------------------------------------
+# Check for some environment variables
+#----------------------------------------------------------------------
+
+try: gtk_config = os.environ['GTK_CONFIG']
+except KeyError: gtk_config = 'gtk-config'
+
+try: sys_libs = string.split(os.environ['LIBS'])
+except KeyError: sys_libs = []
+
+#----------------------------------------------------------------------
# Check for build flags on the command line
#----------------------------------------------------------------------
@@ -229,9 +239,10 @@
]
libdirs = []
libs = []
+ libs.extend(sys_libs)
cflags = os.popen(WX_CONFIG + ' --cflags', 'r').read()[:-1] + ' ' + \
- os.popen('gtk-config --cflags', 'r').read()[:-1]
+ os.popen(gtk_config + ' --cflags', 'r').read()[:-1]
cflags = string.split(cflags)
lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1]
|