kpdyer / fteproxy

programmable proxy for censorship circumvention
https://fteproxy.org/
Apache License 2.0
149 stars 21 forks source link

On cygwin setup.py for gmpy can't find "gmp.h" #74

Closed kpdyer closed 10 years ago

kpdyer commented 10 years ago

When executing pip install gmpy or attempting to building gmpy from source, it fails to find gmp.h, despite the fact that it's located in /usr/local/include.

kpdyer commented 10 years ago

Unfortunately, I couldn't find a way to force gmpy's setup.py to look in /usr/local/include and /usr/local/lib for the required gmp depdencies. In BUILDING.windows we, for now, will resort to downloading gmpy manually and applying

sed -i -e "s/incdirs\ =\ \['\.\/src'\]/incdirs\ =\ \['\.\/src','\/usr\/local\/include'\]/g" setup.py
sed -i -e "s/libdirs\ =\ \[\]/libdirs\ =\ \['\/usr\/local\/lib'\]/g" setup.py

prior to executing setup.py build.