Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-895

Rely on python to build the downloaded tarball

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • proton-0.10
    • None
    • None
    • Patch

    Description

      Recently, a patch that made python-qpid-proton's setup.py download proton-c and build it whenever it's not found in the system. The patch relied on cmake to build the library as everyone would do when building proton-c.

      While that works, it's not the right, most pythonic, reliable way to do it. Some reasons why it's not a good thing:

      1. It might overwrite a system qpid install if there's one and if the python-qpid-proton library is being installed in the system
      2. It requires users - including CI systems, etc - to have cmake installed.
      3. It does everything from outside the Python mechanism.

      The patch proposed in this bug changes the current behavior in favor of using Python's build extensions to compile the library. The patch follows the same steps as you'd do with cmake and it does it just for the downloaded tarball. If there's an installed proton-c library, there's nothing to do. If you're building it using cmake from a proton-c dir, it'll keep using cmake normally.

      The built library doesn't have the same name as the global one and it's installed along with the python binding instead of installing header files and the library itself system wide.

      Attachments

        Issue Links

          Activity

            People

              kgiusti Ken Giusti
              flaper87 Flavio Percoco
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: