-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
copr-frontend built failed after upgrading python3.11 #3637
Comments
That's strange. We regularly rebuild the packages and didn't notice this. I just submitted I didn't test specifically for Python 3.11 but it worked fine for Python 3.12 (F40) and Python 3.13 (F41) |
The root cause: the logs below maybe show the magic: + [[ /usr/bin/python3 =~ - ]]
+ clamp_source_mtime /usr/bin/python3 /builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests
+ python_binary='env /usr/bin/python3'
+ bytecode_compilation_path=/builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests
+ PYTHONPATH=/usr/lib/rpm/redhat
+ env /usr/bin/python3 -s -B -m clamp_source_mtime /builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests
Listing '/builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests'...
Can't list '/builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests'
++ /usr/bin/python3 -c 'import sys; sys.stdout.write('\''{0.major}{0.minor}'\''.format(sys.version_info))'
+ python_version=313
+ '[' 313 -ge 39 ']'
+ py39_byte_compile /usr/bin/python3 /builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests
+ python_binary='env PYTHONHASHSEED=0 /usr/bin/python3'
+ bytecode_compilation_path=/builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests
+ env PYTHONHASHSEED=0 /usr/bin/python3 -s -B -m compileall -j4 -o 0 -o 1 -s /builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT -p / --hardlink-dupes --invalidation-mode=timestamp /builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests
Listing '/builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests'...
Can't list '/builddir/build/BUILD/copr-frontend-2.1-build/BUILDROOT/usr/share/copr/coprs_frontend/tests' seems Fedora shipped a |
interesting. So perhaps we could exclude that line for openeuler distros in the specfile just with if statement? Would that work for you? |
Looking at the Fedora Python packaging gudielines:
So we cannot remove those lines from the specfile. And looking at the provided examples, I think we do it correctly. So a condition to not do this on openEuler as @nikromen is suggesting is IMHO the way to go. |
I agree the rule we can't remove any byte comiple code, but think we can safely remove this line because the |
To be more clear, this error was happend in openEuler only when the |
That we probably can.
(the Checking the specfile and we explicitly do copr/frontend/copr-frontend.spec Line 264 in 4acf287
Will you send a PR @pkking ? |
Sure, im happy to submit a PR later :) |
here's two different build log:
the succeed log
the failed log
after some investigate, seems the py_compile command line change the behavior
in
python3.9
in
python3.11
The text was updated successfully, but these errors were encountered: