Accepting request 1164269 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1164269
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-debugpy?expand=0&rev=16
This commit is contained in:
Ana Guerrero 2024-04-03 15:18:26 +00:00 committed by Git OBS Bridge
commit 9f83a27c10
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 28 12:55:24 UTC 2024 - ecsos <ecsos@opensuse.org>
- Fix build error in Leap.
-------------------------------------------------------------------
Thu Feb 15 16:18:57 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -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