Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python311 for openSUSE:Factory 
checked in at 2023-08-11 15:55:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python311 (Old)
 and      /work/SRC/openSUSE:Factory/.python311.new.11712 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python311"

Fri Aug 11 15:55:02 2023 rev:22 rq:1103332 version:3.11.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python311/python311.changes      2023-08-06 
16:29:18.875602718 +0200
+++ /work/SRC/openSUSE:Factory/.python311.new.11712/python311.changes   
2023-08-11 15:55:05.735606243 +0200
@@ -1,0 +2,10 @@
+Thu Aug 10 09:33:26 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- restrict PEP668 to ALP/Tumbleweed 
+
+-------------------------------------------------------------------
+Fri Aug  4 06:37:41 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- add externally_managed.in to label this build as PEP-668 managed 
+
+-------------------------------------------------------------------

New:
----
  externally_managed.in

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python311.spec ++++++
--- /var/tmp/diff_new_pack.mOw4dq/_old  2023-08-11 15:55:06.907613227 +0200
+++ /var/tmp/diff_new_pack.mOw4dq/_new  2023-08-11 15:55:06.915613274 +0200
@@ -103,6 +103,7 @@
 Source1:        
https://www.python.org/ftp/python/%{folderversion}/%{tarname}.tar.xz.asc
 Source2:        baselibs.conf
 Source3:        README.SUSE
+Source4:        externally_managed.in
 Source7:        macros.python3
 Source8:        import_failed.py
 Source9:        import_failed.map
@@ -710,6 +711,11 @@
 rm %{buildroot}%{_libdir}/pkgconfig/{python3,python3-embed}.pc
 %endif
 
+%if %{suse_version} > 1550
+# PEP-0668 mark this as a distro maintained python
+sed -e 's,__PYTHONPREFIX__,%{python_pkg_name},' -e 
's,__PYTHON__,python%{python_version},' < %{SOURCE4} > 
%{buildroot}%{sitedir}/EXTERNALLY-MANAGED
+%endif
+
 # link shared library instead of static library that tools expect
 ln -s ../../libpython%{python_abi}.so 
%{buildroot}%{_libdir}/python%{python_version}/config-%{python_abi}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}/libpython%{python_abi}.so
 
@@ -906,6 +912,10 @@
 %{_mandir}/man1/python3.1%{?ext_man}
 %endif
 %{_mandir}/man1/python%{python_version}.1%{?ext_man}
+%if %{suse_version} > 1550
+# PEP-0668
+%{sitedir}/EXTERNALLY-MANAGED
+%endif
 # license text, not a doc because the code can use it at run-time
 %{sitedir}/LICENSE.txt
 # RPM macros


++++++ externally_managed.in ++++++
[externally-managed]
Error=To install Python packages system-wide, try 
 zypper install __PYTHONPREFIX__-xyz, where xyz is the package
 you are trying to install.

 If you wish to install a non-rpm packaged Python package,
 create a virtual environment using __PYTHON__ -m venv path/to/venv.
 Then use path/to/venv/bin/python and path/to/venv/bin/pip.

 If you wish to install a non-rpm packaged Python application,
 it may be easiest to use `pipx install xyz`, which will manage a
 virtual environment for you. Install pipx via `zypper install 
__PYTHONPREFIX__-pipx` .

Reply via email to