Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76889

Add version range for setuptools

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 7.0 Required
    • Component/s: Build
    • Labels:
    • Environment:
      Ubuntu 20.04.01
    • Server Development Platform
    • ALL
    • Hide
      // Install setuptools (version that is out of mentioned range)  
      
      // Try to build Mongo Server
      user@ubuntu20.04:~/mongo$ sudo python3 buildscripts/scons.py DESTDIR=/opt/mongo_uttam CCFLAGS="" SHCCFLAGS="" --linker=gold LINKFLAGS="" install-mongod
      
      // Try to check & [re]install improper packages as suggested by failed installation output
      user@ubuntu20.04:~/mongo$ /usr/bin/python3 -m pip install -r etc/pip/compile-requirements.txt
      Show
      // Install setuptools (version that is out of mentioned range) // Try to build Mongo Server user@ubuntu20.04:~/mongo$ sudo python3 buildscripts/scons.py DESTDIR=/opt/mongo_uttam CCFLAGS= "" SHCCFLAGS=" " --linker=gold LINKFLAGS=" " install-mongod // Try to check & [re]install improper packages as suggested by failed installation output user@ubuntu20.04:~/mongo$ /usr/bin/python3 -m pip install -r etc/pip/compile-requirements.txt

      Consider including a particular versions range into pip components specification for 

      setuptools

       https://github.com/mongodb/mongo/blob/v7.0/etc/pip/components/compile.req#L6

       

      because

      mongo-tooling-metrics == 1.0.7 

      https://github.com/mongodb/mongo/blob/v7.0/etc/pip/components/tooling_metrics.req#L1

      requires

       

      setuptools >= 58.1.0, < 59.0.0 

       

       

      Without that restrictions, if an incompatible (with mongo-tooling-metrics) version of setuptools (e.g. 45.2.0) is already installed on the system, we observe such behavior:

      user@ubuntu20.04:~/mongo$ sudo python3 buildscripts/scons.py DESTDIR=/opt/mongo_uttam CCFLAGS="" SHCCFLAGS="" --linker=gold LINKFLAGS="" install-mongod

      Checking required python packages...

      Requirements list:

          Cheetah3<=3.2.6.post1

          PyYAML<=6.0.0,>=3.0.0

          cryptography==2.3; platform_machine == "s390x" or platform_machine == "ppc64le"

          cryptography==36.0.2; platform_machine != "s390x" and platform_machine != "ppc64le"

          mongo-ninja-python==1.11.1.4; platform_machine == "x86_64" and sys_platform == "linux"

          mongo-tooling-metrics==1.0.7

          ninja>=1.10.0; platform_machine != "x86_64" or sys_platform != "linux"

          packaging<=21.3

          psutil<=5.8.0

          pymongo==4.3.3

          pypiwin32>=223; sys_platform == "win32" and python_version > "3"

          pywin32>=225; sys_platform == "win32" and python_version > "3"

          regex<=2021.11.10

          requests<=2.26.0,>=2.0.0

          requirements_parser<=0.3.1

          setuptools

          types-PyYAML~=6.0.5

          typing-extensions>=3.7.4

      (setuptools 45.2.0 (/usr/lib/python3/dist-packages), Requirement.parse('setuptools<59.0.0,>=58.1.0'), {'mongo-tooling-metrics'})

      Try running:

          /usr/bin/python3 -m pip install -r etc/pip/compile-requirements.txt

       

      user@ubuntu20.04:~/mongo$ /usr/bin/python3 -m pip install -r etc/pip/compile-requirements.txt

      /usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

        from cryptography.utils import int_from_bytes

      /usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead

        from cryptography.utils import int_from_bytes

      Ignoring pypiwin32: markers 'sys_platform == "win32" and python_version > "3"' don't match your environment

      Ignoring pywin32: markers 'sys_platform == "win32" and python_version > "3"' don't match your environment

      Ignoring cryptography: markers 'platform_machine == "s390x" or platform_machine == "ppc64le"' don't match your environment

      Ignoring ninja: markers 'platform_machine != "x86_64" or sys_platform != "linux"' don't match your environment

      Requirement already satisfied: cryptography==36.0.2 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/platform.req (line 6)) (36.0.2)

      Requirement already satisfied: mongo-ninja-python==1.11.1.4 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/platform.req (line 8)) (1.11.1.4)

      Requirement already satisfied: psutil<=5.8.0 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/core.req (line 2)) (5.8.0)

      Requirement already satisfied: pymongo==4.3.3 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/core.req (line 3)) (4.3.3)

      Requirement already satisfied: PyYAML<=6.0.0,>=3.0.0 in /usr/lib/python3/dist-packages (from -r etc/pip/components/core.req (line 4)) (5.3.1)

      Requirement already satisfied: types-PyYAML~=6.0.5 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/core.req (line 5)) (6.0.12.9)

      Requirement already satisfied: requests<=2.26.0,>=2.0.0 in /usr/lib/python3/dist-packages (from -r etc/pip/components/core.req (line 6)) (2.22.0)

      Requirement already satisfied: typing-extensions>=3.7.4 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/core.req (line 7)) (4.5.0)

      Requirement already satisfied: Cheetah3<=3.2.6.post1 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/compile.req (line 2)) (3.2.6.post1)

      Requirement already satisfied: packaging<=21.3 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/compile.req (line 3)) (21.3)

      Requirement already satisfied: regex<=2021.11.10 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/compile.req (line 4)) (2021.11.10)

      Requirement already satisfied: requirements_parser<=0.3.1 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/compile.req (line 5)) (0.3.1)

      Requirement already satisfied: setuptools in /home/ubuntu/.local/lib/python3.8/site-packages (from -r etc/pip/components/compile.req (line 6)) (45.2.0)

      Requirement already satisfied: mongo-tooling-metrics==1.0.7 in /usr/local/lib/python3.8/dist-packages (from -r etc/pip/components/tooling_metrics.req (line 1)) (1.0.7)

      Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.8/dist-packages (from cryptography==36.0.2->-r etc/pip/components/platform.req (line 6)) (1.15.1)

      Requirement already satisfied: dnspython<3.0.0,>=1.16.0 in /usr/local/lib/python3.8/dist-packages (from pymongo==4.3.3->-r etc/pip/components/core.req (line 3)) (2.3.0)

      Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.8/dist-packages (from packaging<=21.3->-r etc/pip/components/compile.req (line 3)) (3.0.9)

      Requirement already satisfied: types-setuptools<58.0.0,>=57.4.4 in /usr/local/lib/python3.8/dist-packages (from requirements_parser<=0.3.1->-r etc/pip/components/compile.req (line 5)) (57.4.18)

      Requirement already satisfied: pydantic<2.0.0,>=1.8.2 in /usr/local/lib/python3.8/dist-packages (from mongo-tooling-metrics==1.0.7->-r etc/pip/components/tooling_metrics.req (line 1)) (1.10.7)

      Requirement already satisfied: gitpython<4.0.0,>=3.1.29 in /usr/local/lib/python3.8/dist-packages (from mongo-tooling-metrics==1.0.7->-r etc/pip/components/tooling_metrics.req (line 1)) (3.1.31)

      Requirement already satisfied: distro<2.0.0,>=1.5.0 in /usr/local/lib/python3.8/dist-packages (from mongo-tooling-metrics==1.0.7->-r etc/pip/components/tooling_metrics.req (line 1)) (1.8.0)

      Requirement already satisfied: pycparser in /usr/local/lib/python3.8/dist-packages (from cffi>=1.12->cryptography==36.0.2->-r etc/pip/components/platform.req (line 6)) (2.21)

      Requirement already satisfied: gitdb<5,>=4.0.1 in /usr/local/lib/python3.8/dist-packages (from gitpython<4.0.0,>=3.1.29->mongo-tooling-metrics==1.0.7->-r etc/pip/components/tooling_metrics.req (line 1)) (4.0.10)

      Requirement already satisfied: smmap<6,>=3.0.1 in /usr/local/lib/python3.8/dist-packages (from gitdb<5,>=4.0.1->gitpython<4.0.0,>=3.1.29->mongo-tooling-metrics==1.0.7->-r etc/pip/components/tooling_metrics.req (line 1)) (5.0.0)

       

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            andrei.artemev@intel.com Andy Artemev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: