summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100755
index 0000000..9034f0e
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+
+import distutils
+import DistUtilsExtra.auto
+import os
+
+
+class install_pylock(distutils.command.install.install):
+ def run(self):
+ distutils.dir_util.copy_tree('etc', os.path.join(self.root, '/etc'),
+ preserve_times=0, preserve_symlinks=1, verbose=1)
+
+ distutils.command.install.install.run(self)
+
+DistUtilsExtra.auto.setup(
+ name = 'pylock',
+ version = '1',
+
+ data_files = [],
+
+ packages = ['pylock'],
+ package_data = {
+ 'pylock': ['data/unlock.ui', 'data/bg.svg'],
+ },
+
+ cmdclass = {
+ 'install': install_pylock,
+ },
+)