From 02c0a2d32518da8dec9d13fb98c8764810936ebc Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 12 Apr 2013 21:19:57 +0200 Subject: More setup fixes --- bin/pylock | 5 ----- po/POTFILES.in | 8 ++++++++ scripts/pylock | 5 +++++ setup.py | 13 ++++++++----- 4 files changed, 21 insertions(+), 10 deletions(-) delete mode 100755 bin/pylock create mode 100644 po/POTFILES.in create mode 100755 scripts/pylock diff --git a/bin/pylock b/bin/pylock deleted file mode 100755 index 88652cd..0000000 --- a/bin/pylock +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env python3 - -from pylock import Main - -Main.main() diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..8d634f0 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,8 @@ +[encoding: UTF-8] +pylock/__init__.py +pylock/Main.py +pylock/Locker.py +pylock/Selection.py +pylock/pam.py +pylock/LockWindow.py +[type: gettext/glade]pylock/data/unlock.ui diff --git a/scripts/pylock b/scripts/pylock new file mode 100755 index 0000000..88652cd --- /dev/null +++ b/scripts/pylock @@ -0,0 +1,5 @@ +#!/usr/bin/env python3 + +from pylock import Main + +Main.main() diff --git a/setup.py b/setup.py index 4fd24a3..c6c80c7 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,8 @@ #!/usr/bin/env python3 -import distutils -import DistUtilsExtra.auto +import distutils.core +import distutils.command.install +from DistUtilsExtra.command import build_extra, build_i18n import os @@ -12,18 +13,20 @@ class install_pylock(distutils.command.install.install): distutils.command.install.install.run(self) -DistUtilsExtra.auto.setup( +distutils.core.setup( name = 'pylock', version = '1', - data_files = [], - packages = ['pylock'], package_data = { 'pylock': ['data/unlock.ui', 'data/bg.svg'], }, + scripts = ['scripts/pylock'], + cmdclass = { + 'build': build_extra.build_extra, + 'build_i18n': build_i18n.build_i18n, 'install': install_pylock, }, ) -- cgit v1.2.3