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

Use the new hscommon.plat unit.

This commit is contained in:
Virgil Dupras
2011-09-22 09:32:09 -04:00
parent 43c4dcb267
commit 1fafe04f19
9 changed files with 26 additions and 23 deletions

View File

@@ -14,6 +14,7 @@ import compileall
import shutil
import json
from hscommon.plat import ISWINDOWS, ISLINUX
from hscommon.build import (build_dmg, add_to_pythonpath, print_and_do, copy_packages,
build_debian_changelog, copy_qt_plugins, get_module_version)
@@ -26,7 +27,7 @@ def package_cocoa(edition):
build_dmg(app_path, '.')
def package_windows(edition, dev):
if sys.platform != "win32":
if not ISWINDOWS:
print("Qt packaging only works under Windows.")
return
add_to_pythonpath('.')
@@ -111,9 +112,9 @@ def main():
if ui == 'cocoa':
package_cocoa(edition)
elif ui == 'qt':
if sys.platform == "win32":
if ISWINDOWS:
package_windows(edition, dev)
elif sys.platform == "linux2":
elif ISLINUX:
package_debian(edition)
else:
print("Qt packaging only works under Windows or Linux.")