public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pycxx] rawhide: Remove the use of %py3_install that is deprecated
@ 2026-06-24 10:42 Barry Scott
0 siblings, 0 replies; only message in thread
From: Barry Scott @ 2026-06-24 10:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-pycxx
Branch : rawhide
Commit : 80f46cc6d25866e8e4331f977ebbbda9a78f78a3
Author : Barry Scott <barry@barrys-emacs.org>
Date : 2026-06-24T11:26:04+01:00
Stats : +15/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-pycxx/c/80f46cc6d25866e8e4331f977ebbbda9a78f78a3?branch=rawhide
Log:
Remove the use of %py3_install that is deprecated
Document why setup.py is run and what happens if distutils are not available
---
diff --git a/python-pycxx.spec b/python-pycxx.spec
index 0bc81da..40358f9 100644
--- a/python-pycxx.spec
+++ b/python-pycxx.spec
@@ -46,8 +46,18 @@ for Python 3. There is no non-devel package needed.
%install
-%global py_install_args --prefix=%{_prefix} --install-headers=%{_includedir}/CXX --install-data=%{_usrsrc}
-%py3_install -- %{py_install_args}
+# PyCXX is a C++ source library it uses the setup.py to install C++ sources and headers
+# It cannot use the newer packaging that is for python source projects
+# setup.py depends on distutils
+
+# If distutils stops being available upstream will write a standalone
+# install script for the C++ files.
+/usr/bin/python3 setup.py install \
+ --skip-build \
+ --root %{buildroot} \
+ --prefix %{_prefix} \
+ --install-headers=%{_includedir}/CXX \
+ --install-data=%{_usrsrc}
# Write pkg-config PyCXX.pc file
mkdir -p %{buildroot}%{_datadir}/pkgconfig
@@ -84,9 +94,11 @@ test "$(pkg-config --modversion PyCXX)" = "%{version}"
%changelog
-* Wed Jun 24 2026 barry Scott <barry@barrys-emacs.org> - 7.1.10-12
+* Wed Jun 24 2026 barry Scott <barry@barrys-emacs.org> - 7.2.0-1
- update to pycxx 7.2.0
remove python2 conditional sections
+ remove use of %py3_install that is deprecated
+ document what happens if distutils is nolonger available
* Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 7.1.10-11
- Rebuilt for Python 3.15
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-24 10:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 10:42 [rpms/python-pycxx] rawhide: Remove the use of %py3_install that is deprecated Barry Scott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox