[pycrypto] setup.py fails to find gmp on Debian/Ubuntu
Dwayne C. Litzenberger
dlitz at dlitz.net
Mon Oct 10 22:07:38 CST 2011
On Sat, Sep 24, 2011 at 03:04:49PM +0200, Sebastian Ramacher wrote:
>Debian and Ubuntu recently started to implement Multiarch . Because of this,
>libgmp.so has been moved from /usr/lib/ to /usr/lib/<host-triplet>/ and setup.py
>cannot find it anymore.
Oh, neat! I'm still running Ubuntu 11.04 (natty) and Debian squeeze, so I
On Tue, Sep 27, 2011 at 07:02:44PM +0200, Legrandin wrote:
>+ '''Verify that the compiler and the linker can reach libgmp'''
>+ fname = tempfile.mktemp(".c")
>+ oname = tempfile.mktemp(".out")
>+ f = open(fname, 'w')
>+ #include <gmp.h>
>+ int main(void)
>+ return 0;
Ok, this looks a lot like something an autoconf would do. Rather than
writing our own custom version of autoconf in setup.py, I've just added a
configure script. Can you try it out?
It works for me on Debian wheezy amd64 with libgmp-dev installed.
Note that it should also work with python3 now.
If it's good, I'll make a release this week.
Dwayne C. Litzenberger <dlitz at dlitz.net>
OpenPGP: 19E1 1FE8 B3CF F273 ED17 4A24 928C EC13 39C2 5CF7
More information about the pycrypto