| 1 | ## common/setup.py |
|---|
| 2 | ## |
|---|
| 3 | ## Gajim Team: |
|---|
| 4 | ## - Yann Le Boulanger <asterix@lagaule.org> |
|---|
| 5 | ## - Vincent Hanquez <tab@snarc.org> |
|---|
| 6 | ## |
|---|
| 7 | ## Copyright (C) 2003-2005 Gajim Team |
|---|
| 8 | ## |
|---|
| 9 | ## This program is free software; you can redistribute it and/or modify |
|---|
| 10 | ## it under the terms of the GNU General Public License as published |
|---|
| 11 | ## by the Free Software Foundation; version 2 only. |
|---|
| 12 | ## |
|---|
| 13 | ## This program is distributed in the hope that it will be useful, |
|---|
| 14 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | ## GNU General Public License for more details. |
|---|
| 17 | ## |
|---|
| 18 | |
|---|
| 19 | from distutils.core import setup, Extension |
|---|
| 20 | import os |
|---|
| 21 | |
|---|
| 22 | if os.name == 'posix': |
|---|
| 23 | module1 = Extension( 'idle', |
|---|
| 24 | sources = ['idle.c'], |
|---|
| 25 | # extra_compile_args = ['-W'], |
|---|
| 26 | libraries = ['gtk-x11-2.0','gdk-x11-2.0','glib-2.0','X11','Xext','Xss','atk-1.0'], |
|---|
| 27 | library_dirs = ['/usr/X11R6/lib'], |
|---|
| 28 | include_dirs = ['/usr/include/gtk-2.0', '/usr/include/glib-2.0','/usr/lib/gtk-2.0/include','/usr/lib/glib-2.0/include','/usr/include/pango-1.0','/usr/include/atk-1.0'] |
|---|
| 29 | ) |
|---|
| 30 | elif os.name == 'nt': |
|---|
| 31 | module1 = Extension( 'idle', |
|---|
| 32 | sources = ['idle.c'], |
|---|
| 33 | # extra_compile_args = ['-W'], |
|---|
| 34 | ) |
|---|
| 35 | |
|---|
| 36 | setup (name = 'idle', version = '1.0', description = 'interface to X11/scrnserver.h', ext_modules = [module1]) |
|---|