From 384a7a0beeb471a3d044006f32147fa1bd123b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 10 Jun 2025 09:20:04 +0200 Subject: [PATCH] Specify data_files with relative paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The paths should be relative to sys.prefix, which happens to be /usr in the RPM world. This change should make installation with %pyproject_install macro from a generated wheel work correctly. Signed-off-by: Lubomír Sedlář (cherry picked from commit 1116e1f278ea547cf3bf9265eba70d7a8aa4795e) --- setup.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 99c44a26..3bb1a602 100755 --- a/setup.py +++ b/setup.py @@ -49,11 +49,11 @@ setup( }, scripts=["contrib/yum-dnf-compare/pungi-compare-depsolving"], data_files=[ - ("/usr/lib/tmpfiles.d", glob.glob("contrib/tmpfiles.d/*.conf")), - ("/usr/share/pungi", glob.glob("share/*.xsl")), - ("/usr/share/pungi", glob.glob("share/*.ks")), - ("/usr/share/pungi", glob.glob("share/*.dtd")), - ("/usr/share/pungi/multilib", glob.glob("share/multilib/*")), + ("lib/tmpfiles.d", glob.glob("contrib/tmpfiles.d/*.conf")), + ("share/pungi", glob.glob("share/*.xsl")), + ("share/pungi", glob.glob("share/*.ks")), + ("share/pungi", glob.glob("share/*.dtd")), + ("share/pungi/multilib", glob.glob("share/multilib/*")), ], test_suite="tests", install_requires=[