Specify data_files with relative paths
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ář <lsedlar@redhat.com> (cherry picked from commit 1116e1f278ea547cf3bf9265eba70d7a8aa4795e)
This commit is contained in:
parent
466e924e6f
commit
384a7a0bee
10
setup.py
10
setup.py
@ -49,11 +49,11 @@ setup(
|
|||||||
},
|
},
|
||||||
scripts=["contrib/yum-dnf-compare/pungi-compare-depsolving"],
|
scripts=["contrib/yum-dnf-compare/pungi-compare-depsolving"],
|
||||||
data_files=[
|
data_files=[
|
||||||
("/usr/lib/tmpfiles.d", glob.glob("contrib/tmpfiles.d/*.conf")),
|
("lib/tmpfiles.d", glob.glob("contrib/tmpfiles.d/*.conf")),
|
||||||
("/usr/share/pungi", glob.glob("share/*.xsl")),
|
("share/pungi", glob.glob("share/*.xsl")),
|
||||||
("/usr/share/pungi", glob.glob("share/*.ks")),
|
("share/pungi", glob.glob("share/*.ks")),
|
||||||
("/usr/share/pungi", glob.glob("share/*.dtd")),
|
("share/pungi", glob.glob("share/*.dtd")),
|
||||||
("/usr/share/pungi/multilib", glob.glob("share/multilib/*")),
|
("share/pungi/multilib", glob.glob("share/multilib/*")),
|
||||||
],
|
],
|
||||||
test_suite="tests",
|
test_suite="tests",
|
||||||
install_requires=[
|
install_requires=[
|
||||||
|
Loading…
Reference in New Issue
Block a user