Maintained by: NLnet Labs

[Unbound-users] issue with pythonmodule

W.C.A. Wijngaards
Wed Aug 10 08:06:24 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Paul, Tom,

On 08/09/2011 04:25 PM, Paul Wouters wrote:
> On Tue, 9 Aug 2011, Tom Hendrikx wrote:
> 
>>> in acx_python.m4 it does this:
>>>         #
>>>         # Check for site packages
>>>         #
>>>         AC_MSG_CHECKING([for Python site-packages path])
>>>         if test -z "$PYTHON_SITE_PKG"; then
>>>                 PYTHON_SITE_PKG=`$PYTHON -c "import
>>> distutils.sysconfig; \
>>>                         print distutils.sysconfig.get_python_lib(0,0);"`
>>>         fi
>>>         AC_MSG_RESULT([$PYTHON_SITE_PKG])
>>>         AC_SUBST([PYTHON_SITE_PKG])
>>>
>>> it is very simple.  How could that give the correct path?
>>>
>>> Best regards,
>>>    Wouter
>>
>> It seems to me that the path that is appended in my patch should be the
>> same as the one used in the Makefile. Probably you should update the
>> patch when it is clear what the correct path would be, depending on the
>> input of Paul.
>>
>> On my system, the Makefile test returns
>> '/usr/lib/python2.7/dist-packages', which works because the distro
>> symlinks /usr/lib to /usr/lib64 on 64-bit systems.
>>
>> Python docs state that distutils.sysconfig.get_python_lib(1,0) would
>> return the platform dependant path. I'm curious to see whether this
>> includes /usr/lib64 on Paul's system...
> 
> import distutils.sysconfig
> distutils.sysconfig.get_python_lib(1,0)
> '/usr/lib64/python2.7/site-packages'

OK, committed that fix too (and also for libldns python library).

Best regards, Wouter
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJOQh/gAAoJEJ9vHC1+BF+NWKoP/jgYTmrEIOMBRlhA9bxuZw8O
2ooDLUTr6zqiV2yjy+CKJY25DvoGhX+RWY3JFEMAgfa9u5b4IYCzqaVGFG3hkbQb
7BrGlIiIXbhPRZtu0kcJckEcWefX+srVOE/Lr6CmMpqZRaWI9bCSVbyUgonk0hV9
4BLvmvaHWK6nd5r7IMPpio4HG9MAJGY5TeTaqbnY62nPx+6Sy4HqYDVTnl8rBROF
ddmdhT95CkHj9uD+WEyST6w21RaSA6CDGKbxyvaV6a78TOnRHyL7ZWQg3RIA3a51
n7hc8FgCgkClTozfTxmn4kvllj15XtA61SiWuqxj/AO0VTzGCTtTe+vLhUorpOKJ
3oXPc8Jub62w6v+5w0bIRD9EGj8DD+kDycHVWB735WEFBQk68EgA3ew9UeTlAdG2
Do2x8xd1m6cM95hazTP4A2r32XwfY6q8jNiuvLRjtLA4dkqggUca7qCF9AOtlO/L
R/2SKz5KZBeo4JXW7RH4LhXzqb0WibDv0s2DSvFwx7nFOFMfZbpUVjgn0/ajJge+
UuRsikxSU7P83TDoomLYr4tZG+g4SZvG33LTvlWFyqcSY/K4XGmvCg2wXDRpnuKt
1K9I+V+bD+ydJ+DFtV2vQVAquozWM1/QVJxwSynABMjsqyMCc/2lxT6KrmAvgWZr
R4gWwKi3ipXzKzNNVYnU
=5zTb
-----END PGP SIGNATURE-----