diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-12 18:44:55 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-04-12 18:44:55 +0200 |
commit | 6636cbff81061bc270e4d21659fa3fba8eb3c87b (patch) | |
tree | 394c6de2cc718d320f92c2d3cd863f88c40bcfd7 /setup.py | |
parent | 4659883ba00bd499f41f4cc1a5f96e4bdd5ac9de (diff) | |
download | pylock-6636cbff81061bc270e4d21659fa3fba8eb3c87b.tar pylock-6636cbff81061bc270e4d21659fa3fba8eb3c87b.zip |
Create installation script using distutils
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 29 |
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, + }, +) |