Description
The first line on qdmanage and qdstat python scripts is the python shebang
#!/usr/bin/env python
When a make install is run from the dispatch build folder, the <install_dir>/bin/qdstat and <install_dir>/bin/qdmanage python scripts have their python shebang evaluated and the first line of the scripts look like this -
#!/usr/bin/python
This behavior is incorrect.
Chris Richardson observed the following on the qpid users mailing list -
It seems the problem here is not with CMake but actually with the qpid-dispatch code, which has duplicate install routines for the qdstat/qdmanager files. One is as Gordon described using install(PROGRAMS...) and the other is via the python distutils method using <qpid-dispatch>/python/setup.py.in; it is in fact distutils that munges the shebang as described and not CMake at all! Removing qdstat/qdmanager from setup.py.in fixes the problem.