PyMongo wheels have multiple versions of C extensions

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Infrastructure
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Looking at the wheel files for pymongo: https://pypi.org/project/pymongo/4.17.0/#files.

      The files have C extensions built for all the python versions, instead of just the one they're targeting. For example, pymongo-4.17.0-cp314-cp314-macosx_11_0_arm64.whl has:

      _cmessage.cpython-310-darwin.so
      _cmessage.cpython-311-darwin.so
      _cmessage.cpython-312-darwin.so
      _cmessage.cpython-313-darwin.so
      _cmessage.cpython-314-darwin.so
      _cmessage.cpython-39-darwin.so

      This looks to be an issue with our cibuildwheel setup in https://github.com/mongodb/mongo-python-driver/blob/master/.github/workflows/dist.yml.

            Assignee:
            Noah Stapp
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: