1 |
Hi! |
2 |
|
3 |
It looks like we are reinventing the wheel a little. We have |
4 |
python-config which is our own stuff (let me know if it isn't). |
5 |
Currently this script only returns the libraries to link against. |
6 |
|
7 |
I think it would be better to drop the python-config script and use |
8 |
pkg-config instead. pkg-config is becoming a standard for these kind of |
9 |
things and we would then just install a .pc file and then do: |
10 |
|
11 |
pkg-config --libs python (-L /usr/lib/python2.2/config -lpython2.2 |
12 |
...) |
13 |
pkg-config --modversion python (2.2) |
14 |
pkg-config --cflags (-I/usr/include/python2.2) |
15 |
|
16 |
-- |
17 |
|
18 |
The current python-config looks like this: |
19 |
|
20 |
#!/usr/bin/python |
21 |
import distutils.sysconfig, string |
22 |
print |
23 |
"-lpython2.2",string.join(string.split(distutils.sysconfig.get_config_var("MODLIBS"))) |
24 |
|
25 |
A question? Is this MODLIBS generated at installation time (of the |
26 |
python-package)? If so we would exchange this scheme for a python.pc |
27 |
file which would look something like: |
28 |
|
29 |
prefix=/usr |
30 |
exec_prefix=${prefix} |
31 |
libdir=${exec_prefix}/lib |
32 |
includedir=${prefix}/include |
33 |
|
34 |
Name: Python |
35 |
Description: Python language |
36 |
Version: 2.2 |
37 |
Libs: -L/usr/lib -lpython2.2 -lreadline -lncurses -ldb-3.2 -lz |
38 |
Cflags: -I${includedir}/python2.2 |
39 |
|
40 |
|
41 |
If I get a go on this I can do the change and update all our ebuilds |
42 |
currently using python-config. |
43 |
|
44 |
This issue can be tracked at: |
45 |
|
46 |
http://bugs.gentoo.org/show_bug.cgi?id=342 |
47 |
|
48 |
Regards, |
49 |
Mikael Hallendal |
50 |
|
51 |
-- |
52 |
Mikael Hallendal |
53 |
Gentoo Linux Developer, Desktop Team Leader |
54 |
CodeFactory AB, Stockholm, Sweden |