Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-815

shebang python (#!/usr/bin/env python) gets evaluated on make install

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 1.0.0
    • Tools
    • None

    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.
      

      Attachments

        Activity

          People

            gmurthy Ganesh Murthy
            gmurthy Ganesh Murthy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: