Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-1898

broken mesos.native egg is published on PyPI

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: python api, release
    • Labels:
      None

      Description

      There's a mesos.native egg published on PyPI that contains C extensions compiled against Ubuntu 14.04's glibc. Python's packaging system isn't smart enough to figure out that this egg is incompatible with other systems' glibc (such as CentOS 6) and will download it anyway.

      As Aurora's executor is written in Python this is causing our users build system pain (see AURORA-823).

      The correct thing to do here is to publish a source distribution (python setup.py sdist upload) and let the installer compile native code at pip install/pants build/python setup.py install time (linking against installed mesos .h/.so/.a files).

      For an example of how to do this, see the Thrift project (https://pypi.python.org/pypi/thrift/0.9.1). Note that only a source distribution is uploaded, not binary eggs, but native extensions will be compiled during pip install.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomasr Thomas Rampelberg
                Reporter:
                kevints Kevin Sweeney
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: