[packages/python3-debugpy] - rel 2, updated packaging

baggins baggins at pld-linux.org
Mon Jun 2 09:53:56 CEST 2025


commit 03bef237a93cbd6c6c5ffe03dde9330793b630a8
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jun 2 10:42:51 2025 +0200

    - rel 2, updated packaging

 opt.patch            | 11 +++++++++++
 python3-debugpy.spec |  8 ++++++--
 2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/python3-debugpy.spec b/python3-debugpy.spec
index 88b03a8..99b07e7 100644
--- a/python3-debugpy.spec
+++ b/python3-debugpy.spec
@@ -4,12 +4,13 @@ Summary:	Implementation of the Debug Adapter Protocol for Python
 Summary(pl.UTF-8):	Implementacja protokołu Debug Adapter Protocol dla Pythona
 Name:		python3-debugpy
 Version:	1.8.14
-Release:	1
+Release:	2
 License:	MIT with EPL v1.0, PSF v2, BSD parts
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/debugpy/
 Source0:	https://files.pythonhosted.org/packages/source/d/debugpy/debugpy-%{version}.tar.gz
 # Source0-md5:	4155c8004de85f5f9b39c98fc940aba7
+Patch0:		opt.patch
 URL:		https://pypi.org/project/debugpy/
 BuildRequires:	libstdc++-devel
 BuildRequires:	python3-Cython
@@ -29,6 +30,7 @@ debugpy to implementacja protokołu Debug Adapter Protocol dla Pythona.
 
 %prep
 %setup -q -n debugpy-%{version}
+%patch -P0 -p1
 
 %build
 cd src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac
@@ -58,6 +60,8 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc DESCRIPTION.md LICENSE README.md src/debugpy/ThirdPartyNotices.txt
+%attr(755,root,root) %{_bindir}/debugpy
+%attr(755,root,root) %{_bindir}/debugpy-adapter
 %dir %{py3_sitedir}/debugpy
 %dir %{py3_sitedir}/debugpy/_vendored
 %dir %{py3_sitedir}/debugpy/_vendored/pydevd
@@ -79,7 +83,7 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_sys_monitoring
 %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/*.py
 %attr(755,root,root) %{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/*.so
-%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/__pycache__/*pydevd*
+%{py3_sitedir}/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/__pycache__
 %{py3_sitedir}/debugpy/_vendored/pydevd/pydev_ipython
 %{py3_sitedir}/debugpy/_vendored/pydevd/pydev_sitecustomize
 %dir %{py3_sitedir}/debugpy/_vendored/pydevd/pydevd_attach_to_process
diff --git a/opt.patch b/opt.patch
new file mode 100644
index 0000000..263ed3b
--- /dev/null
+++ b/opt.patch
@@ -0,0 +1,11 @@
+--- debugpy-1.8.14/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py~	2025-04-10 20:57:13.000000000 +0200
++++ debugpy-1.8.14/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py	2025-06-02 10:35:37.566660439 +0200
+@@ -190,7 +190,7 @@
+             # Enabling -flto brings executable from 4MB to 0.56MB and -Os to 0.41MB
+             # Profiling shows an execution around 3-5% slower with -Os vs -O3,
+             # so, kept only -flto.
+-            extra_compile_args = ["-flto", "-O3"]
++            extra_compile_args = ["-flto"]
+             extra_link_args = extra_compile_args[:]
+ 
+             # Note: also experimented with profile-guided optimization. The executable
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-debugpy.git/commitdiff/03bef237a93cbd6c6c5ffe03dde9330793b630a8



More information about the pld-cvs-commit mailing list