public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Barry Scott <barry@barrys-emacs.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pycxx] rawhide: Remove the use of %py3_install that is deprecated
Date: Wed, 24 Jun 2026 10:42:53 GMT [thread overview]
Message-ID: <178229777307.1.2524284139669808355.rpms-python-pycxx-80f46cc6d258@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-24 10:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178229777307.1.2524284139669808355.rpms-python-pycxx-80f46cc6d258@fedoraproject.org \
--to=barry@barrys-emacs.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox