forked from ssokolow/quicktile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·50 lines (43 loc) · 1.31 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
#!/usr/bin/env python
"""
@todo:
- Decide on a proper way to store the version number in a single place
- Extend this to also produce a working install.
(Currently just for the "develop" command)
- 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 WinSplit clone for X11 desktops (Window-tiling helper)',
author='Stephan Sokolow (deitarion/SSokolow)',
#author_email='',
url = "http://ssokolow.github.com/quicktile/",
install_requires=REQUIRES,
)