]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/rgw: barbican and pykmip tasks upgrade pip before installing pytz 42689/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 Aug 2021 19:05:36 +0000 (15:05 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 5 Aug 2021 20:45:02 +0000 (16:45 -0400)
Downloading https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz (546kB)
  Complete output from command python setup.py egg_info:

          =============================DEBUG ASSISTANCE==========================
          If you are seeing an error here please try the following to
          successfully install cryptography:

          Upgrade to the latest pip and try again. This will fix errors for most
          users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
          =============================DEBUG ASSISTANCE==========================

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-build-7fhnk5us/cryptography/setup.py", line 14, in <module>
      from setuptools_rust import RustExtension
  ModuleNotFoundError: No module named 'setuptools_rust'

Fixes: https://tracker.ceph.com/issues/52070
Signed-off-by: Casey Bodley <cbodley@redhat.com>
qa/tasks/barbican.py
qa/tasks/pykmip.py

index 4d1354903df823a50d7cb1270c029d4c502ccf95..d43568c6103a0ff973a66421c3abcf3d4b95b79f 100644 (file)
@@ -98,6 +98,8 @@ def setup_venv(ctx, config):
     for (client, _) in config.items():
         run_in_barbican_dir(ctx, client,
                             ['python3', '-m', 'venv', '.barbicanenv'])
+        run_in_barbican_venv(ctx, client,
+                             ['pip', 'install', '--upgrade', 'pip'])
         run_in_barbican_venv(ctx, client,
                              ['pip', 'install', 'pytz',
                               '-e', get_barbican_dir(ctx)])
index 3491babc517cc2ccb06626f9c70f808761bb0be2..45a5af6891b5c22eaadb98d83b37ebef2f013fe3 100644 (file)
@@ -148,6 +148,7 @@ def setup_venv(ctx, config):
     log.info('Setting up virtualenv for pykmip...')
     for (client, _) in config.items():
         run_in_pykmip_dir(ctx, client, ['python3', '-m', 'venv', '.pykmipenv'])
+        run_in_pykmip_venv(ctx, client, ['pip', 'install', '--upgrade', 'pip'])
         run_in_pykmip_venv(ctx, client, ['pip', 'install', 'pytz', '-e', get_pykmip_dir(ctx)])
     yield