Wrong invocation of sh
Status: Beta
Brought to you by:
belyi
In setup.py, gpgme-config is invoked using sh. However, the chosen command line doesn't work:
sh gpgme-config --libs
sh: Can't open gpgme-config
It *should* have been, and I assume you meant to do this instead:
sh -c 'gpgme-config --libs'
However, isn't it much better to use popen and the likes to do this kind of 'get the output of a command'? I may have a weird setup in terms of values of $PATH and the exact behavior of sh etc., but that shouldn't be a problem if the command is correct.
By the way, i meant the module popen2, not the command os.popen, which you're already using.