[pycrypto] setup.py fails to find gmp on Debian/Ubuntu

Sebastian Ramacher sebastian+lists at ramacher.at
Sat Sep 24 07:04:49 CST 2011


Debian and Ubuntu recently started to implement Multiarch [1]. Because of this,
libgmp.so has been moved from /usr/lib/ to /usr/lib/<host-triplet>/ and setup.py
cannot find it anymore.

I was able to circumvent this problem by asking gcc for its library search path
(see the attached patch). I don't know if that is the best way to fix this issue
but I would be glad if you'd consider the patch or fix the issue differently.


[1] https://wiki.ubuntu.com/MultiarchSpec
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multiarch.patch
Type: text/x-diff
Size: 1334 bytes
Desc: not available
Url : http://lists.dlitz.net/pipermail/pycrypto/attachments/20110924/58564f26/attachment.patch 

More information about the pycrypto mailing list