summaryrefslogtreecommitdiff
path: root/CompizPyWindowList-setup.py
blob: 9af5d2f9ad3b53922838cc2de1c76c8b4f2f14b6 (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
#
# Copyright Eyemagnet Limited
# 
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
# 
# Author: Kristian F. Erikson <kristian@erikson.dk>
#

# To rebuild this module the command is: ~$ python CompizPyWindowList-setup.py build_ext -i

from distutils.core import setup, Extension

module = Extension("CompizPyWindowList",
                    libraries = ['glib-2.0','X11','Xmu','X11-xcb','xcb'],
                    # Where these libraries are located on a particular distubution 
                    # can be located by issueing command: 
                    # ~$ pkg-config glib-2.0 x11 xmu x11-xcb xcb --cflags --libs
                    include_dirs = ['/usr/include/glib-2.0','/usr/lib/glib-2.0/include','/usr/local/lib' \
                                    '/usr/local/include/glib-2.0','/usr/local/lib/glib-2.0/include','/usr/include'],
                    sources = ["CompizPyWindowList.c"])

setup(name="CompizPyWindowList", 
      version="1.0",
      description="Lists active windows in X11",
      author="Kristian Frank Erikson",
      author_email="kristian@erikson.dk",
      url="http://www.eyemagnet.com",
      long_description='''
This C extension queries X11 for information on active windows.
      ''',
      ext_modules=[module])