[OE-core] [PATCH v8] python3{,-native}: update to 3.7.0

Burton, Ross ross.burton at intel.com
Fri Nov 2 16:17:38 UTC 2018


On Fri, 2 Nov 2018 at 16:09, Burton, Ross <ross.burton at intel.com> wrote:
> I'm currently running the regression tests so will report back if
> anything fails.

Turns out enabling reproducible builds breaks the test suite:

test test_py_compile failed -- Traceback (most recent call last):
  File "/usr/lib/python3.7/test/test_py_compile.py", line 125, in
test_source_date_epoch
    self.assertEqual(statinfo.st_mtime, testtime)
AssertionError: 1541175127.6495416 != 123456789
0:11:47 load avg: 0.41 [269/415/1] test_pyclbr -- test_py_compile failed

And this used to work before the upgrade but doesn't now:

test test_sysconfig failed -- Traceback (most recent call last):
  File "/usr/lib/python3.7/test/test_sysconfig.py", line 410, in
test_get_makefile_filename
    self.assertTrue(os.path.isfile(makefile), makefile)
AssertionError: False is not true :
/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu/Makefile

I suspect we just need to make it skip, or depend on python3-dev.

test test_venv crashed -- Traceback (most recent call last):
  File "/usr/lib/python3.7/test/libregrtest/runtest.py", line 163, in
runtest_inner
    the_module = importlib.import_module(abstest)
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.7/test/test_venv.py", line 20, in <module>
    import venv
ModuleNotFoundError: No module named 'venv'

Urgh, venv.  We just changed this, I wonder if it's not being pulled
into the python3-modules depends.

Ross



More information about the Openembedded-core mailing list