diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-09 11:21:39 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-09 16:04:24 +0200 |
commit | f52dc148f2f425288333feecd7b807a2e27084ac (patch) | |
tree | 8cd19b6cc101325f3e4cdb1b06e53198e53c126c /external | |
parent | b2b29283c21640d02b12c031963dbd50a646552c (diff) |
lxml: ignore warnings when calling setup
Since a1295cb177295752f8cbfbb49e13d5bb69ed7dc7
"python: upgrade to 3.10.14 (master only)"
macosx builds with:
Building lxml version 5.2.2.
Building without Cython.
Building against libxml2 2.9.4 and libxslt 1.1.29
Building against libxml2/libxslt in the following directory: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib
running install
Traceback (most recent call last):
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/lxml/setup.py", line 208, in <module>
setup(
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 985, in run_command
cmd_obj = self.get_command_obj(command)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 860, in get_command_obj
cmd_obj = self.command_obj[command] = klass(self)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 158, in __init__
super().__init__(dist)
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 64, in __init__
self.initialize_options()
File "/Users/libreoffice/releases/r/workdir/UnpackedTarball/python3/python-inst/@__________________________________________________OOO/LibreOfficePython.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py", line 34, in initialize_options
warnings.warn(
setuptools._deprecation_warning.SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
/Users/libreoffice/releases/libo-core/external/lxml/ExternalProject_lxml.mk:25: recipe for target '/Users/libreoffice/releases/r/workdir/ExternalProject/lxml/build' failed
make[1]: *** [/Users/libreoffice/releases/r/workdir/ExternalProject/lxml/build] Error 1
Makefile:125: recipe for target 'lxml' failed
make: *** [lxml] Error 2
Because we bundle setuptools on macosx, and for that reason,
this deprecationwarning is triggered. In the long run,
external/lxml/ExternalProject_lxml.mk should be changed to
use build and pip as the message says, but for now, just
ignore the warnings.
Change-Id: I05373363aba746fa40e5039c08aaa0f320908c24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170205
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'external')
-rw-r--r-- | external/lxml/ExternalProject_lxml.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/external/lxml/ExternalProject_lxml.mk b/external/lxml/ExternalProject_lxml.mk index a2ca0243cf7c..34bd89c1eca8 100644 --- a/external/lxml/ExternalProject_lxml.mk +++ b/external/lxml/ExternalProject_lxml.mk @@ -37,7 +37,7 @@ $(call gb_ExternalProject_get_state_target,lxml,build): \ $(if $(SYSTEM_LIBXSLT),,--with-xslt-config=$(gb_UnpackedTarball_workdir)/libxslt/xslt-config) && \ rm -fr install && \ mkdir install && \ - $(lxml_PYTHON) setup.py install \ + $(lxml_PYTHON) -Wi setup.py install \ --install-lib install \ ) $(call gb_Trace_EndRange,lxml,EXTERNAL) |