gcc - Distutils partially ignoring CC environment variable when building python extension -


i trying install subprocess32 python module (https://github.com/google/python-subprocess32) , having issues distutils. module includes c extension has built, when run either pip install . or python setup.py install following output:

... creating build creating build/temp.linux-x86_64-2.7 /non/existent/path/gcc -pthread -fpic ... -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o unable execute '/non/existent/path/gcc': no such file or directory 

obviously distutils using wrong path gcc reason. tried manually specify right path gcc using export cc=/correct/path/to/gcc , output:

building '_posixsubprocess' extension creating build/temp.linux-x86_64-2.7 /correct/path/to/gcc -fpic -fno-strict-aliasing -g -o2 ... -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o /non/existent/path/gcc -pthread -shared ... build/temp.linux-x86_64-2.7/_posixsubprocess.o -o build/lib.linux-x86_64-2.7/_posixsubprocess.so unable execute '/non/existent/path/gcc': no such file or directory 

the original problematic command using correct path, still trying use incorrect location of gcc build shared library. there environment variable need specify correct behaviour?

i cludged solution compiling extension myself, removing reference extension setup.py, installing package , copying compiled file correct place. i'm not going mark answer accepted because i'm sure there better way..


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -