1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Minor Updates

- Cleanup extension modules in setup.py to use correct namespaces
- Update build.py to leverage setup.py for modules
- Roll mutagen required version back to 1.44.0 to support more distros
- Change build.py and sphinxgen.py to use pathlib
- Remove hsaudiotag from package list for debian and arch
This commit is contained in:
2021-08-26 03:29:24 -05:00
parent 814d145366
commit 83f401595d
5 changed files with 44 additions and 78 deletions

View File

@@ -71,7 +71,7 @@ def package_debian_distribution(distribution):
version = "{}~{}".format(app_version, distribution)
destpath = op.join("build", "dupeguru-{}".format(version))
srcpath = op.join(destpath, "src")
packages = ["hscommon", "core", "qtlib", "qt", "send2trash", "hsaudiotag"]
packages = ["hscommon", "core", "qtlib", "qt", "send2trash"]
copy_files_to_package(srcpath, packages, with_so=False)
os.mkdir(op.join(destpath, "modules"))
copy_all(op.join("core", "pe", "modules", "*.*"), op.join(destpath, "modules"))
@@ -122,14 +122,7 @@ def package_arch():
# need to include them).
print("Packaging for Arch")
srcpath = op.join("build", "dupeguru-arch")
packages = [
"hscommon",
"core",
"qtlib",
"qt",
"send2trash",
"hsaudiotag",
]
packages = ["hscommon", "core", "qtlib", "qt", "send2trash"]
copy_files_to_package(srcpath, packages, with_so=True)
shutil.copy(op.join("images", "dgse_logo_128.png"), srcpath)
debopts = json.load(open(op.join("pkg", "arch", "dupeguru.json")))
@@ -233,7 +226,8 @@ def main():
return
print("Packaging dupeGuru with UI qt")
if sys.platform == "win32":
package_windows()
package_debian()
# package_windows()
elif sys.platform == "darwin":
package_macos()
else: