forked from ssokolow/quicktile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·53 lines (46 loc) · 1.42 KB
/
setup.py
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
47
48
49
50
51
52
#!/usr/bin/env python
"""
@todo:
- Decide on a proper way to store the version number in a single place
- Figure out how to properly handle install_requires for things which don't
always install the requisite metadata for normal detection.
- Identify minimum dependency versions properly.
- Figure out how to mark optional packages as optional.
"""
try:
from setuptools import setup
setup # Keep Pyflakes from complaining about redefinition of an "unused".
except ImportError:
from distutils.core import setup
REQUIRES = ['python-xlib',]
# Detect PyGTK without requiring egg metadata
try:
import gtk.gdk
gtk.gdk # Silence PyFlakes warning
except ImportError:
REQUIRES.append('pygtk')
try:
import dbus
dbus
except ImportError:
REQUIRES.append('dbus-python')
try:
import quicktile
version = quicktile.__version__
except:
version = None
if __name__ == '__main__':
setup(
name='QuickTile',
version=version,
description='A keyboard-driven window-tiling for X11 desktops (inspired by WinSplit Revolution)',
author='Stephan Sokolow (deitarion/SSokolow)',
#author_email='',
url = "http://ssokolow.com/quicktile/",
license = "https://www.gnu.org/licenses/gpl-2.0.txt",
install_requires=REQUIRES,
scripts = ['quicktile.py'],
data_files = [
('/etc/xdg/autostart', ['quicktile.desktop']),
]
)