3 """Setup script for the WINGs module distribution."""
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 += [".."]
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 += [".."]
24 wings
= os
.popen("get-wings-flags --libs", "r")
25 flags
= wings
.read().split()
26 libraries
= [x
[2:] for x
in flags
]
29 runtime_library_dirs
= []
31 extra_compile_args
= ['-Wno-strict-prototypes', '-Wno-unused']
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.
46 setup (# Distribution meta-data
47 name
= "Python-WINGs",
49 description
= "A python interface to WINGs",
50 long_description
=long_description
,
52 author_email
= "dan@windowmaker.info",
55 url
= "http://windowmaker.info/",
57 # Description of the modules and packages in the distribution
59 py_modules
= ["WINGs"],
61 ext_modules
= [Extension(
64 include_dirs
=include_dirs
,
65 library_dirs
=library_dirs
,
66 runtime_library_dirs
=runtime_library_dirs
,
68 extra_objects
=extra_objects
,
69 extra_compile_args
=extra_compile_args
,