summaryrefslogtreecommitdiffstats
path: root/setup.py
blob: 1690702f939413a54f5e3ca2170a4b9ff4b42ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/env python3

import distutils.core
import distutils.command.install
from DistUtilsExtra.command import build_extra, build_i18n
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)

distutils.core.setup(
    name = 'pylock',
    version = '1',
    author = 'Matthias Schiffer',
    author_email = 'mschiffer@universe-factory.net',
    url = 'http://git.universe-factory.net/pylock/',
    description = 'A lightweight screenlocker for X implemented in Python 3 using Gtk3',
    license = 'BSD',

    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,
    },

    provides = ['pylock'],
    requires = [
        'gi.repository.Gtk',
        'gi.repository.Gdk',
        'gi.repository.GdkX11',
        'gi.repository.GObject',
        'gi.repository.GLib',
    ],
)