Accepting request 1141231 from home:ecsos:python
- Fix build error for Leap. Use build and test as descriped on upstream. OBS-URL: https://build.opensuse.org/request/show/1141231 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lxml?expand=0&rev=195
This commit is contained in:
parent
6aa062b559
commit
837840e35d
@ -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>
|
||||
|
||||
|
@ -37,8 +37,8 @@ BuildRequires: %{python_module Cython >= 3.0.7}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module cssselect >= 0.9.1}
|
||||
# cyclic dependency
|
||||
#BuildRequires: %{python_module html5lib}
|
||||
#BuildRequires: %{python_module beautifulsoup4}
|
||||
#BuildRequires: %%{python_module html5lib}
|
||||
#BuildRequires: %%{python_module beautifulsoup4}
|
||||
BuildRequires: %{python_module setuptools >= 18.0.1}
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} == 1500
|
||||
@ -98,7 +98,7 @@ rm src/lxml/lxml.etree_api.h
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
%python_build --with-cython
|
||||
%python_build build_ext -i --with-cython
|
||||
|
||||
%check
|
||||
# The tests fail on SLE 11 due to broken incremental parsing in libxml2
|
||||
@ -107,7 +107,7 @@ export LANG=en_US.UTF-8
|
||||
export PYTHONUNBUFFERED=x
|
||||
# cyclic dependency between html5lib and lxml
|
||||
rm -v src/lxml/html/tests/test_html5parser.py
|
||||
%{python_expand PYTHON3="$python" %make_build test}
|
||||
python%python_bin_suffix test.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
Loading…
Reference in New Issue
Block a user