diff --git a/link-C-modules-with-libpython.patch b/link-C-modules-with-libpython.patch new file mode 100644 index 0000000000000000000000000000000000000000..7e46b88bdd58f51ce235dd36231395dfb28a80e0 --- /dev/null +++ b/link-C-modules-with-libpython.patch @@ -0,0 +1,13 @@ +diff --git a/setuptools/_distutils/command/build_ext.py b/setuptools/_distutils/command/build_ext.py +index 1a6dd39..c4ad11e 100644 +--- a/setuptools/_distutils/command/build_ext.py ++++ b/setuptools/_distutils/command/build_ext.py +@@ -759,7 +759,7 @@ class build_ext(Command): + # shared libraries are resolved at link time. + from distutils.sysconfig import get_config_var + +- link_libpython = False ++ link_libpython = True + if get_config_var('Py_ENABLE_SHARED'): + # A native build on an Android device or on Cygwin + if hasattr(sys, 'getandroidapilevel'): diff --git a/python-setuptools.spec b/python-setuptools.spec index a5f0f6a8b0ef71cb9b82a4b677ad0afc7b44fae9..fdcdcedd5527d5c7010d4c70f6f6350e8b5bd59f 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_with tests %global srcname setuptools @@ -13,7 +13,8 @@ License: MIT and ASL 2.0 and (BSD or ASL 2.0) and Python URL: https://pypi.python.org/pypi/%{srcname} Source0: %{pypi_source %{srcname} %{version}} -Patch0: Remove-optional-or-unpackaged-test-deps.patch +Patch0: Remove-optional-or-unpackaged-test-deps.patch +Patch1: link-C-modules-with-libpython.patch BuildArch: noarch BuildRequires: python3-devel @@ -135,6 +136,9 @@ PYTHONPATH=$(pwd) %pytest \ %doc CHANGES.rst README.rst %changelog +* Tue Apr 11 2023 Funda Wang - 65.5.1-2 +- link C module with libpython + * Thu Feb 16 2023 mgb01105731 - 65.5.1-1 - update to version 65.5.1