lxml: ignore warnings when calling setup.py build too
Revertsdc97b366ab
"python3: silence distutils deprecated warning" andf41773d684
"python3: silence distutils deprecated warning (take 2)" andc920605dd4
"external/lxml: Fix --enable-python=fully-internal build" Change-Id: I9131fa5ac22cf4f0279e7bf0edc5c50b61845044 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170206 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
parent
6dc23b7bff
commit
b2ae2fa78f
4 changed files with 2 additions and 53 deletions
2
external/lxml/ExternalProject_lxml.mk
vendored
2
external/lxml/ExternalProject_lxml.mk
vendored
|
@ -32,7 +32,7 @@ $(call gb_ExternalProject_get_state_target,lxml,build): \
|
|||
LDFLAGS="$$LDFLAGS -L$(gb_UnpackedTarball_workdir)/python3" && \
|
||||
_PYTHON_PROJECT_BASE=$(gb_UnpackedTarball_workdir)/python3 && \
|
||||
export CFLAGS LDFLAGS _PYTHON_PROJECT_BASE && ) \
|
||||
$(lxml_PYTHON) setup.py build \
|
||||
$(lxml_PYTHON) -Wi setup.py build \
|
||||
$(if $(SYSTEM_LIBXML),,--with-xml2-config=$(gb_UnpackedTarball_workdir)/libxml2/xml2-config) \
|
||||
$(if $(SYSTEM_LIBXSLT),,--with-xslt-config=$(gb_UnpackedTarball_workdir)/libxslt/xslt-config) && \
|
||||
rm -fr install && \
|
||||
|
|
|
@ -10,20 +10,3 @@ diff -ur lxml.org/setupinfo.py lxml/setupinfo.py
|
|||
from distutils.core import Extension
|
||||
from distutils.errors import CompileError, DistutilsOptionError
|
||||
from versioninfo import get_base_dir
|
||||
diff -ur lxml.org/setup.py lxml/setup.py
|
||||
--- lxml.org/setup.py 2023-10-20 10:32:17.949501053 +0200
|
||||
+++ lxml/setup.py 2023-10-20 10:33:09.082631759 +0200
|
||||
@@ -217,9 +217,10 @@
|
||||
# `Unknown distribution option: 'bugtrack_url'`
|
||||
# which distract folks from real causes of problems when troubleshooting
|
||||
# bugtrack_url="https://bugs.launchpad.net/lxml",
|
||||
- project_urls={
|
||||
- "Source": "https://github.com/lxml/lxml",
|
||||
- },
|
||||
+ # same as for bugtrack_urls also for project_urls when using distutils instead of setuptools
|
||||
+ #project_urls={
|
||||
+ # "Source": "https://github.com/lxml/lxml",
|
||||
+ #},
|
||||
description=(
|
||||
"Powerful and Pythonic XML processing library"
|
||||
" combining libxml2/libxslt with the ElementTree API."
|
||||
|
|
1
external/python3/UnpackedTarball_python3.mk
vendored
1
external/python3/UnpackedTarball_python3.mk
vendored
|
@ -22,7 +22,6 @@ $(eval $(call gb_UnpackedTarball_set_patchflags,python3,--binary))
|
|||
endif
|
||||
|
||||
$(eval $(call gb_UnpackedTarball_add_patches,python3,\
|
||||
external/python3/distutils_deprecated.patch.0 \
|
||||
external/python3/i100492-freebsd.patch.1 \
|
||||
external/python3/python-3.3.0-darwin.patch.1 \
|
||||
external/python3/python-3.8-msvc-libffi.patch.1 \
|
||||
|
|
33
external/python3/distutils_deprecated.patch.0
vendored
33
external/python3/distutils_deprecated.patch.0
vendored
|
@ -1,33 +0,0 @@
|
|||
--- Lib/distutils/__init__.py 2024-07-06 14:41:11.881840873 +0200
|
||||
+++ Lib/distutils/__init__.py 2024-07-06 14:41:31.725586707 +0200
|
||||
@@ -7,14 +7,3 @@
|
||||
|
||||
setup (...)
|
||||
"""
|
||||
-
|
||||
-import sys
|
||||
-import warnings
|
||||
-
|
||||
-__version__ = sys.version[:sys.version.index(' ')]
|
||||
-
|
||||
-_DEPRECATION_MESSAGE = ("The distutils package is deprecated and slated for "
|
||||
- "removal in Python 3.12. Use setuptools or check "
|
||||
- "PEP 632 for potential alternatives")
|
||||
-warnings.warn(_DEPRECATION_MESSAGE,
|
||||
- DeprecationWarning, 2)
|
||||
--- Lib/distutils/sysconfig.py 2024-07-06 18:03:30.397986006 +0200
|
||||
+++ Lib/distutils/sysconfig.py 2024-07-06 18:03:58.637312653 +0200
|
||||
@@ -55,13 +55,6 @@
|
||||
if os.name == "nt":
|
||||
from sysconfig import _fix_pcbuild
|
||||
|
||||
-warnings.warn(
|
||||
- 'The distutils.sysconfig module is deprecated, use sysconfig instead',
|
||||
- DeprecationWarning,
|
||||
- stacklevel=2
|
||||
-)
|
||||
-
|
||||
-
|
||||
# Following functions are the same as in sysconfig but with different API
|
||||
def parse_config_h(fp, g=None):
|
||||
return sysconfig_parse_config_h(fp, vars=g)
|
Loading…
Reference in a new issue