diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-06 18:07:32 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-06 18:54:59 +0200 |
commit | f41773d684dfb1bfebe484bbf6d1ec4b5937d348 (patch) | |
tree | a638c6ab828b126c4fd3c233312050ff5249af4c /external | |
parent | dc97b366ab9ce3d38c84da06b8b37131579f87f3 (diff) |
python3: silence distutils deprecated warning (take 2)
Since a1295cb177295752f8cbfbb49e13d5bb69ed7dc7
"python: upgrade to 3.10.14 (master only)"
Now it fails with
Traceback (most recent call last):
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setup.py", line 23, in <module>
import setupinfo
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setupinfo.py", line 7, in <module>
from distutils.command.build_ext import build_ext as _build_ext
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/instdir/program/python-core-3.10.14/lib/distutils/command/build_ext.py", line 13, in <module>
from distutils.sysconfig import customize_compiler, get_python_version
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/instdir/program/python-core-3.10.14/lib/distutils/sysconfig.py", line 58, in <module>
warnings.warn(
DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
make[1]: *** [/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/external/lxml/ExternalProject_lxml.mk:26: /home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/ExternalProject/lxml/build] Error 1
Change-Id: I9000018390b31a65a30ef87d0c500872fc6c9343
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170069
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'external')
-rw-r--r-- | external/python3/distutils_deprecated.patch.0 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/external/python3/distutils_deprecated.patch.0 b/external/python3/distutils_deprecated.patch.0 index 8affb17544d3..2e9666245ff1 100644 --- a/external/python3/distutils_deprecated.patch.0 +++ b/external/python3/distutils_deprecated.patch.0 @@ -15,3 +15,19 @@ - "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) |