Workaround python 3.7.1 requiring that PYTHONPATH end in os.sep

pull/4500/head
Christoph Reiter 6 years ago committed by Jon Turney
parent 7f9aa9208c
commit eab97e0c44
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 4
      run_meson_command_tests.py

@ -124,7 +124,9 @@ class CommandTests(unittest.TestCase):
pylibdir = prefix / get_pypath()
bindir = prefix / get_pybindir()
pylibdir.mkdir(parents=True)
os.environ['PYTHONPATH'] = str(pylibdir)
# XXX: join with empty name so it always ends with os.sep otherwise
# distutils complains that prefix isn't contained in PYTHONPATH
os.environ['PYTHONPATH'] = os.path.join(str(pylibdir), '')
os.environ['PATH'] = str(bindir) + os.pathsep + os.environ['PATH']
self._run(python_command + ['setup.py', 'install', '--prefix', str(prefix)])
# Check that all the files were installed correctly

Loading…
Cancel
Save