Skip to content

Commit

Permalink
[#251] Updated DisplayCAL.setup so that dist/copyright,
Browse files Browse the repository at this point in the history
`misc/{appname}-readme.txt` and the `misc/LICENSE.txt` will always be added to the datafiles.
  • Loading branch information
eoyilmaz committed Oct 18, 2024
1 parent 4553d65 commit e925957
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions DisplayCAL/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e925957

Please sign in to comment.