Since a1295cb177
"python: upgrade to 3.10.14 (master only)"
Some builds started to fail with
Traceback (most recent call last):
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setup.py", line 15, in <module>
from setuptools import setup
ModuleNotFoundError: No module named 'setuptools'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/workdir/UnpackedTarball/lxml/setup.py", line 17, in <module>
from distutils.core import setup
File "/home/tdf/lode/jenkins/workspace/lo_callgrind_linux/instdir/program/python-core-3.10.14/lib/distutils/__init__.py", line 19, in <module>
warnings.warn(_DEPRECATION_MESSAGE,
DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
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
The problem is that python 3.10 doesn't bundle setuptools so
it's not possible to replace it at the moment
Change-Id: I9a9d077b51f49e912dab4941efe8751c2fcc76e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170068
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
57 lines
1.8 KiB
Makefile
57 lines
1.8 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_UnpackedTarball_UnpackedTarball,python3))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_tarball,python3,$(PYTHON_TARBALL),,python3))
|
|
|
|
$(eval $(call gb_UnpackedTarball_fix_end_of_line,python3,\
|
|
PCbuild/libffi.props \
|
|
PCbuild/pcbuild.sln \
|
|
))
|
|
|
|
ifneq ($(MSYSTEM),)
|
|
# use binary flag so patch from git-bash won't choke on mixed line-endings in patches
|
|
$(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 \
|
|
external/python3/python-3.7.6-msvc-ssl.patch.1 \
|
|
external/python3/python-3.5.4-msvc-disable.patch.1 \
|
|
external/python3/ubsan.patch.0 \
|
|
external/python3/python-3.5.tweak.strip.soabi.patch \
|
|
external/python3/darwin.patch.0 \
|
|
external/python3/tsan.patch.0 \
|
|
external/python3/init-sys-streams-cant-initialize-stdin.patch.0 \
|
|
))
|
|
|
|
ifneq ($(filter DRAGONFLY FREEBSD LINUX NETBSD OPENBSD SOLARIS,$(OS)),)
|
|
$(eval $(call gb_UnpackedTarball_add_patches,python3,\
|
|
external/python3/python-3.3.3-elf-rpath.patch.1 \
|
|
))
|
|
endif
|
|
|
|
ifneq ($(ENABLE_RUNTIME_OPTIMIZATIONS),TRUE)
|
|
$(eval $(call gb_UnpackedTarball_add_patches,python3,\
|
|
external/python3/python-3.3.3-disable-obmalloc.patch.0 \
|
|
))
|
|
endif
|
|
|
|
ifneq ($(SYSTEM_ZLIB),TRUE)
|
|
$(eval $(call gb_UnpackedTarball_add_patches,python3, \
|
|
external/python3/internal-zlib.patch.0 \
|
|
))
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|