ManageIQ / integration_tests

ManageIQ integration tests
GNU General Public License v2.0
69 stars 165 forks source link

[RFR] Fix travis distutils #10311

Closed mshriver closed 4 years ago

mshriver commented 4 years ago

Travis is failing with a distutils import error.

Couldn't replicate locally, but travis's ubuntu image is running with python 3.7.1.

Updated travis to bionic and cleaned up the config a bit

Explicitly set virtualenv path for quickstart

Ignored/logged site import failure in disable_bytecache, as it should be non-blocking failure.

QS $ /home/travis/virtualenv/python3.7.1/bin/python3 -m cfme.scripting.disable_bytecode

Traceback (most recent call last):

  File "/home/travis/build/ManageIQ/integration_tests/cfme/scripting/disable_bytecode.py", line 24, in <module>

    site_packages = distutils.sysconfig_get_python_lib()

AttributeError: module 'distutils' has no attribute 'sysconfig_get_python_lib'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/opt/python/3.7.1/lib/python3.7/runpy.py", line 193, in _run_module_as_main

    "__main__", mod_spec)

  File "/opt/python/3.7.1/lib/python3.7/runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "/home/travis/build/ManageIQ/integration_tests/cfme/scripting/disable_bytecode.py", line 27, in <module>

    site_packages = site.getsitepackages()[0]

AttributeError: module 'site' has no attribute 'getsitepackages'