diff --git a/python-Mathics-relax-numpy-versions.patch b/python-Mathics-relax-numpy-versions.patch new file mode 100644 index 0000000..ed9e764 --- /dev/null +++ b/python-Mathics-relax-numpy-versions.patch @@ -0,0 +1,13 @@ +Index: Mathics3-6.0.2/setup.py +=================================================================== +--- Mathics3-6.0.2.orig/setup.py ++++ Mathics3-6.0.2/setup.py +@@ -64,7 +64,7 @@ elif sys.version_info[:2] == (3, 6): + sys.exit(-1) + else: + INSTALL_REQUIRES += [ +- "numpy<1.25", ++ "numpy", + "llvmlite", + "sympy>=1.8", + "pillow >= 9.2", diff --git a/python-Mathics.changes b/python-Mathics.changes index 7d46aeb..7ca4658 100644 --- a/python-Mathics.changes +++ b/python-Mathics.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Sep 1 18:15:06 UTC 2023 - Atri Bhattacharya + +- Disable cython-ised builds: not compatible with Cython 3+. +- Add python-Mathics-relax-numpy-versions.patch to drop the upper + limit on numpy versions. + ------------------------------------------------------------------- Wed Jul 26 15:24:55 UTC 2023 - Atri Bhattacharya diff --git a/python-Mathics.spec b/python-Mathics.spec index ceca085..17f45bc 100644 --- a/python-Mathics.spec +++ b/python-Mathics.spec @@ -39,7 +39,8 @@ Summary: A general-purpose computer algebra system License: Apache-2.0 AND BSD-3-Clause AND GPL-3.0-only AND MIT URL: https://mathics.github.io/ Source0: https://github.com/Mathics3/mathics-core/releases/download/%{version}/%{pyname}-%{version}.tar.gz -BuildRequires: %{python_module Cython} +# PATCH-FEATURE-OPENSUSE python-Mathics-relax-numpy-versions.patch badshah400@gmail.com -- Drop upper limit on required numpy version +Patch0: python-Mathics-relax-numpy-versions.patch BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module colorama} BuildRequires: %{python_module devel} @@ -51,7 +52,6 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module sympy >= 1.10.1} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-Cython Requires: python-Django >= 1.8 Requires: python-Mathics-Scanner >= 1.3.0 Requires: python-Pint @@ -78,6 +78,7 @@ BuildRequires: %{python_module palettable} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests} BuildRequires: %{python_module scikit-image >= 0.17} +BuildRequires: %{python_module typing-extensions} # /SECTION %endif Provides: python-Mathics3 = %{version} @@ -99,23 +100,23 @@ popd %build %if %{without test} -export USE_CYTHON=1 +export USE_CYTHON=0 %python_build %endif %install %if %{without test} -export USE_CYTHON=1 +export USE_CYTHON=0 %python_install %python_clone -a %{buildroot}%{_bindir}/mathics -%python_expand %fdupes %{buildroot}%{$python_sitearch} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %endif %if %{with test} %check # Home page tests require django server up and running, test_gudermannian needs network access # test_image: https://github.com/Mathics3/mathics-core/issues/837 -%pytest_arch -k 'not (test_home_page or test_gudermannian or test_image)' +%pytest -k 'not (test_home_page or test_gudermannian or test_image)' %endif %if %{without test} @@ -129,8 +130,8 @@ export USE_CYTHON=1 %license COPYING.txt %doc README.rst AUTHORS.txt %python_alternative %{_bindir}/mathics -%{python_sitearch}/mathics/ -%{python_sitearch}/%{pyname}-%{version}-py%{python_version}.egg-info/ +%{python_sitelib}/mathics/ +%{python_sitelib}/%{pyname}-%{version}-py%{python_version}.egg-info/ %endif %changelog