setup.py: print what executable we were looking for
The error message is sometimes confusing. Consider the following
situation on Debian 6.0:
$ python setup.py
Building Qt applications
Install PyQt4-devel or disable Qt applications (with --no-qt).
$ dpkg -l | grep -i python | grep -i qt
ii python-qt4 4.7.3-1+b1 Python bindings for Qt4
ii python-qt4-dev 4.7.3-1 Development files for PyQt4
What is really missing is the pyuic4 executable which is provided by
a different package on that distribution. But you have no way to know
that unless you go look into setup.py. This change prints what
executable we are missing as to help diagnose this kind of problem:
$ python setup.py
Building Qt applications
Could not find executable: pyuic4
Install PyQt4-devel or disable Qt applications (with --no-qt).
Notice that until e69adf357b,
the name of the missing executable was printed as well.
Signed-off-by: Adrien Kunysz <adrien@kunysz.be>
Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
45a5080332
commit
24119de001
1 changed files with 1 additions and 0 deletions
1
setup.py
1
setup.py
|
|
@ -41,6 +41,7 @@ def find_executable(name, names):
|
||||||
fpath = os.path.join(path, name) + ext
|
fpath = os.path.join(path, name) + ext
|
||||||
if os.path.exists(fpath) and os.access(fpath, os.X_OK):
|
if os.path.exists(fpath) and os.access(fpath, os.X_OK):
|
||||||
return fpath
|
return fpath
|
||||||
|
print >>sys.stderr, 'Could not find executable: %s' % name
|
||||||
|
|
||||||
|
|
||||||
def build_qt():
|
def build_qt():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue