From 40dd90c9b63c9fc70ac880904be35fc581f1e4acad08aa22878a410c1c62314c Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 3 Apr 2024 06:43:38 +0000 Subject: [PATCH] Accepting request 1163324 from home:ecsos:python - Fix build error in Leap. OBS-URL: https://build.opensuse.org/request/show/1163324 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-debugpy?expand=0&rev=33 --- python-debugpy.changes | 5 +++++ python-debugpy.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-debugpy.changes b/python-debugpy.changes index 041cf24..b267cef 100644 --- a/python-debugpy.changes +++ b/python-debugpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Mar 28 12:55:24 UTC 2024 - ecsos + +- Fix build error in Leap. + ------------------------------------------------------------------- Thu Feb 15 16:18:57 UTC 2024 - Daniel Garcia diff --git a/python-debugpy.spec b/python-debugpy.spec index 98f36a1..8a5b851 100644 --- a/python-debugpy.spec +++ b/python-debugpy.spec @@ -82,7 +82,7 @@ rm -r src/debugpy/_vendored cp -r src/debugpy/_vendored_clean src/debugpy/_vendored pushd src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/ # see /src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py::get_target_filename -pyarch=$(python3 -c 'import platform; print(platform.machine())') +%{python_expand pyarch=$($python -c 'import platform; print(platform.machine())')} g++ %{optflags} -shared -o ../attach_${pyarch}.so -fPIC -nostartfiles attach.cpp # if on intel architectures, use the default upstream names %ifarch x86_64