Accepting request 1141530 from devel:languages:python
- Fix build error for Leap. Use build and test as descriped on upstream. OBS-URL: https://build.opensuse.org/request/show/1141530 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-lxml?expand=0&rev=108
This commit is contained in:
commit
61900e7a88
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 24 10:53:21 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Fix build error for Leap.
|
||||||
|
Use build and test as descriped on upstream.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jan 14 10:00:32 UTC 2024 - Adrian Schröter <adrian@suse.de>
|
Sun Jan 14 10:00:32 UTC 2024 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
|
@ -36,9 +36,6 @@ Patch2: skip-test-under-libxml2-2.11.1.patch
|
|||||||
BuildRequires: %{python_module Cython >= 3.0.7}
|
BuildRequires: %{python_module Cython >= 3.0.7}
|
||||||
BuildRequires: %{python_module base}
|
BuildRequires: %{python_module base}
|
||||||
BuildRequires: %{python_module cssselect >= 0.9.1}
|
BuildRequires: %{python_module cssselect >= 0.9.1}
|
||||||
# cyclic dependency
|
|
||||||
#BuildRequires: %{python_module html5lib}
|
|
||||||
#BuildRequires: %{python_module beautifulsoup4}
|
|
||||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
%if 0%{?suse_version} == 1500
|
%if 0%{?suse_version} == 1500
|
||||||
@ -98,7 +95,7 @@ rm src/lxml/lxml.etree_api.h
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_build --with-cython
|
%python_build build_ext -i --with-cython
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# The tests fail on SLE 11 due to broken incremental parsing in libxml2
|
# The tests fail on SLE 11 due to broken incremental parsing in libxml2
|
||||||
@ -107,7 +104,7 @@ export LANG=en_US.UTF-8
|
|||||||
export PYTHONUNBUFFERED=x
|
export PYTHONUNBUFFERED=x
|
||||||
# cyclic dependency between html5lib and lxml
|
# cyclic dependency between html5lib and lxml
|
||||||
rm -v src/lxml/html/tests/test_html5parser.py
|
rm -v src/lxml/html/tests/test_html5parser.py
|
||||||
%{python_expand PYTHON3="$python" %make_build test}
|
%python_exec test.py
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user