Replace deprecated imp module with importlib
This commit is contained in:
parent
07007a3836
commit
a53ee8c038
2 changed files with 61 additions and 5 deletions
|
|
@ -8,6 +8,8 @@ Source: %{url}/archive/%{version}.tar.gz#/Uranium-%{version}.tar.gz
|
|||
Patch: Uranium-5.3.0-qt-try-ints-then-bytes-for-gl-mask-functions.patch
|
||||
# Fix asserts for called once in Python 3.12:
|
||||
Patch: https://github.com/Ultimaker/Uranium/pull/885.patch#/Uranium-5.3.0-python3.12.patch
|
||||
# Replace deprecated imp module with importlib
|
||||
Patch: https://github.com/Ultimaker/Uranium/pull/915.patch#/Uranium-5.6.0-importlib.patch
|
||||
|
||||
# Cmake bits taken from 4.13.1, before upstream went nuts with conan
|
||||
Source2: mod_bundled_packages_json.py
|
||||
|
|
@ -25,10 +27,6 @@ BuildRequires: /usr/bin/msgmerge
|
|||
BuildRequires: cmake
|
||||
BuildRequires: git-core
|
||||
|
||||
# UM/PluginRegistry.py imports from imp
|
||||
# https://github.com/Ultimaker/Uranium/issues/765
|
||||
BuildRequires: (python3-zombie-imp if python3 >= 3.12)
|
||||
|
||||
# Tests
|
||||
BuildRequires: python3-arcus >= 5.3.0
|
||||
BuildRequires: python3-cryptography
|
||||
|
|
@ -60,7 +58,6 @@ Requires: python3-scipy
|
|||
Requires: python3-shapely
|
||||
Requires: python3-pyclipper
|
||||
Requires: python3-pyqt6
|
||||
Requires: (python3-zombie-imp if python3 >= 3.12)
|
||||
Recommends: python3-numpy-stl
|
||||
|
||||
%description -n python3-uranium
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue