From e9259572c722c5194801656bf7bef667b58e5787 Mon Sep 17 00:00:00 2001 From: Erkan Ozgur Yilmaz Date: Fri, 18 Oct 2024 09:02:58 +0000 Subject: [PATCH] [#251] Updated `DisplayCAL.setup` so that `dist/copyright`, `misc/{appname}-readme.txt` and the `misc/LICENSE.txt` will always be added to the datafiles. --- DisplayCAL/setup.py | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/DisplayCAL/setup.py b/DisplayCAL/setup.py index 496caf06..b221a4ad 100644 --- a/DisplayCAL/setup.py +++ b/DisplayCAL/setup.py @@ -651,18 +651,16 @@ def findall( if not is_rpm_build or doc_layout.startswith("deb"): data_files += get_data(doc, "doc", excludes=["LICENSE.txt"]) if data_files: - if doc_layout.startswith("deb"): - data_files.append((doc, [os.path.join(pydir, "..", "dist", "copyright")])) - data_files.append( - ( - os.path.join(os.path.dirname(data), "doc-base"), - [os.path.join(pydir, "..", "misc", appname.lower() + "-readme")], - ) - ) - else: - data_files.append( - (doc, [relpath(os.path.join(pydir, "..", "LICENSE.txt"), source_dir)]) + data_files.append((doc, [os.path.join(pydir, "..", "dist", "copyright")])) + data_files.append( + ( + os.path.join(os.path.dirname(data), "doc-base"), + [os.path.join(pydir, "..", "misc", appname.lower() + "-readme")], ) + ) + data_files.append( + (doc, [relpath(os.path.join(pydir, "..", "LICENSE.txt"), source_dir)]) + ) # metainfo / appdata.xml data_files.append(