Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-478

Do not build universal wheels

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: None
    • Component/s: None
    • None

      Motor currently builds universal wheels. This is a problem because setup.py contains code that depends on the current python version:

      if sys.version_info[0] < 3:
          install_requires.append('futures')
      ...
      
      if sys.version_info[0] >= 3:
          # Trying to install and byte-compile motor/frameworks/asyncio/__init__.py
          # causes SyntaxError in Python 2.
          packages.append('motor.frameworks.asyncio')
      
          # Install aiohttp integration - aiohttp itself need not be installed.
          packages.append('motor.aiohttp')
      

      We should remove the universal setup.cfg file and build two wheels; one for Python 3 and one for Python 2. This will avoid a regression on MOTOR-99.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: