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

Fixed debian packaging for SE under Python 3.

This commit is contained in:
Virgil Dupras
2010-08-17 07:26:46 -07:00
parent 29163ed053
commit 250a496a78
5 changed files with 22 additions and 7 deletions

View File

@@ -74,6 +74,7 @@ def package_windows(edition, dev):
def package_debian(edition):
add_to_pythonpath('qt')
add_to_pythonpath(op.join('qt', 'base'))
add_to_pythonpath(op.join('qt', edition))
from app import DupeGuru
@@ -89,6 +90,14 @@ def package_debian(edition):
if edition == 'me':
packages.append('hsaudiotag')
copy_packages(packages, srcpath)
import PyQt4
qtsrcpath = op.dirname(PyQt4.__file__)
qtdestpath = op.join(srcpath, 'PyQt4')
os.makedirs(qtdestpath)
shutil.copy(op.join(qtsrcpath, '__init__.py'), qtdestpath)
shutil.copy(op.join(qtsrcpath, 'Qt.so'), qtdestpath)
shutil.copy(op.join(qtsrcpath, 'QtCore.so'), qtdestpath)
shutil.copy(op.join(qtsrcpath, 'QtGui.so'), qtdestpath)
shutil.copytree(ed('debian_{0}'), op.join(destpath, 'debian'))
yaml_path = op.join(help_src, 'changelog.yaml')
changelog_dest = op.join(destpath, 'debian', 'changelog')