Remove texture plugins
[wmaker-crm.git] / WINGs / python / setup.py
blob065988747d5ac630383bd9d9994784884d24124b
1 #!/usr/bin/env python
3 """Setup script for the WINGs module distribution."""
5 import os, sys
6 from distutils.core import setup
7 from distutils.extension import Extension
9 ## Get the include dirs
10 wings = os.popen("get-wings-flags --cflags", "r")
11 flags = wings.read().split()
12 include_dirs = [x[2:] for x in flags]
13 #include_dirs += [".."]
14 wings.close()
16 ## Get the library dirs
17 wings = os.popen("get-wings-flags --ldflags", "r")
18 flags = wings.read().split()
19 library_dirs = [x[2:] for x in flags]
20 #library_dirs += [".."]
21 wings.close()
23 ## Get the libraries
24 wings = os.popen("get-wings-flags --libs", "r")
25 flags = wings.read().split()
26 libraries = [x[2:] for x in flags]
27 wings.close()
29 runtime_library_dirs = []
30 extra_objects = []
31 extra_compile_args = ['-Wno-strict-prototypes', '-Wno-unused']
33 long_description = \
34 """Python interface to the WINGs library
36 Python WINGs is an interface to WINGs, a small widget set with the
37 N*XTSTEP look and feel. It's API is inspired in OpenStep and it's
38 implementation borrows some ideas from Tk. It has a reasonable set of
39 widgets, sufficient for building small applications (like a CDPlayer
40 or hacking something like rxvt). It also has other functions that are
41 usefull for applications, like a User Defaults alike configuration
42 manager and a notification system.
44 """
46 setup (# Distribution meta-data
47 name = "Python-WINGs",
48 version = "0.81.0",
49 description = "A python interface to WINGs",
50 long_description=long_description,
51 author = "Dan Pascu",
52 author_email = "dan@windowmaker.info",
53 license = "GPL",
54 platforms = "ALL",
55 url = "http://windowmaker.info/",
57 # Description of the modules and packages in the distribution
59 py_modules = ["WINGs"],
61 ext_modules = [Extension(
62 name='wings',
63 sources=['WINGs.c'],
64 include_dirs=include_dirs,
65 library_dirs=library_dirs,
66 runtime_library_dirs=runtime_library_dirs,
67 libraries=libraries,
68 extra_objects=extra_objects,
69 extra_compile_args=extra_compile_args,
70 )],