[opensuse-python] Python2 subpackage containing Python3 compiled code
Hi! I have managed to get the testsuite to run and pass for the python-oci-sdk package mentioned earlier this week on this list [1], but now I have run into the strange situation that the Python2 subpackage contains the compiled code for Python3: [ 151s] python2-oci-sdk.noarch: W: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/oci/work_requests/models/__pycache__/work_request_resource.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7) [ 151s] python2-oci-sdk.noarch: W: python-bytecode-wrong-magic-value /usr/lib/python2.7/site-packages/oci/work_requests/models/__pycache__/work_request_summary.cpython-37.pyc expected 62211 (2.7), found 3394 (3.7) Does anyone have a clue what might have caused this? I haven't seen this before. Thanks, Adrian
[1] https://build.opensuse.org/package/show/home:glaubitz:branches:devel:languag...
John Paul Adrian Glaubitz píše v St 19. 06. 2019 v 10:44 +0000:
Hi!
I have managed to get the testsuite to run and pass for the python- oci-sdk package mentioned earlier this week on this list [1], but now I have run into the strange situation that the Python2 subpackage contains the compiled code for Python3:
[ 151s] python2-oci-sdk.noarch: W: python-bytecode-wrong-magic-value /usr/lib/python2.7/site- packages/oci/work_requests/models/__pycache__/work_request_resource.c python-37.pyc expected 62211 (2.7), found 3394 (3.7) [ 151s] python2-oci-sdk.noarch: W: python-bytecode-wrong-magic-value /usr/lib/python2.7/site- packages/oci/work_requests/models/__pycache__/work_request_summary.cp ython-37.pyc expected 62211 (2.7), found 3394 (3.7)
Does anyone have a clue what might have caused this? I haven't seen this before.
Thanks, Adrian
[1] https://build.opensuse.org/package/show/home:glaubitz:branches:devel:languag...
This could be caused by test run using wrong sitelib. The pytest call in check is wrong. Try: %check export PYTHONDONTWRITEBYTECODE=1 %pytest tests/unit tests/integ -s Cheers Tom
participants (2)
-
John Paul Adrian Glaubitz
-
Tomas Chvatal