diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-12 21:19:57 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-12 21:19:57 +0200 |
commit | 02c0a2d32518da8dec9d13fb98c8764810936ebc (patch) | |
tree | 3d902b6460387c8a5562aac3560e5e44480010fa | |
parent | 50451b3676f53665910937dcfdb6fccd6404bd45 (diff) | |
download | pylock-02c0a2d32518da8dec9d13fb98c8764810936ebc.tar pylock-02c0a2d32518da8dec9d13fb98c8764810936ebc.zip |
More setup fixes
-rw-r--r-- | po/POTFILES.in | 8 | ||||
-rwxr-xr-x | scripts/pylock (renamed from bin/pylock) | 0 | ||||
-rwxr-xr-x | setup.py | 13 |
3 files changed, 16 insertions, 5 deletions
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/bin/pylock b/scripts/pylock index 88652cd..88652cd 100755 --- a/bin/pylock +++ b/scripts/pylock @@ -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, }, ) |