Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1897208
Summary: | petsc4py fails to build with Python 3.10: Py_SIZE= needs to be replaced with Py_SET_SIZE | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | petsc4py | Assignee: | Antonio T. sagitter <trpost> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, thrnciar, trpost |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-18 19:50:10 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881 |
Description
Tomáš Hrnčiar
2020-11-12 15:05:04 UTC
A suggested in the upstream issue, the C sources need to be regenerated. I've tried adding this in %prep: rm -v $(grep -rl '/\* Generated by Cython') It get's past the compilation, but than it fail sin %check: + /usr/bin/python3 setup.py test running test Traceback (most recent call last): File "/builddir/build/BUILD/petsc4py-3.13.0/petsc4py-openmpi/setup.py", line 270, in <module> main() File "/builddir/build/BUILD/petsc4py-3.13.0/petsc4py-openmpi/setup.py", line 267, in main run_setup() File "/builddir/build/BUILD/petsc4py-3.13.0/petsc4py-openmpi/setup.py", line 119, in run_setup setup(packages = ['petsc4py', File "/usr/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "/usr/lib64/python3.10/distutils/core.py", line 148, in setup dist.run_commands() File "/usr/lib64/python3.10/distutils/dist.py", line 966, in run_commands self.run_command(cmd) File "/usr/lib64/python3.10/distutils/dist.py", line 985, in run_command cmd_obj.run() File "/builddir/build/BUILD/petsc4py-3.13.0/petsc4py-openmpi/setup.py", line 258, in run_testsuite err = main(args) File "test/runtests.py", line 203, in main package = import_package(options, pkgname) File "test/runtests.py", line 84, in import_package package = __import__(pkgname) ModuleNotFoundError: No module named 'petsc4py' petsc4py should be fixed for Python-3.10 with last build release. Thank you Miro. Antonio, can you please drop the conditional? Regenerating the C sources is always the right thing to do: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_packages_using_cython Fixed. If i regenerate the C sources in ARM arch, OpenMPI tests strangely fail. The change was reverted in Python 3.10, because it caused too much trouble (the amount of affected Fedora packages was too big). Keeping this open for now, unit anew alpha version is out to test it out. This comment is mass posted in all relevant bugzillas. If you already worked upstream to fix the problem, please let them know about the revert. https://github.com/python/cpython/commit/0e2ac21dd I've patched Python 3.10 in our testing copr to include the revert. This package built fine. Sorry for the noise. |