ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
Ryan Dahl (author)
Mon Mar 03 06:31:30 -0800 2008
commit  9bccca53b6ae1533edf3211ad0ba83a48ed9b5a9
tree    a658a2fc4b9d92df6e72291c32dfc17cb24c23f7
parent  6b67ca61e0da5ad0b69ee5aff0a116ca5c6db8d2
ebb / setup.py
100644 24 lines (21 sloc) 0.814 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python
from distutils.core import setup
from distutils.extension import Extension
import commands
 
def pkgconfig(*packages, **kw):
    flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'}
    for token in commands.getoutput("pkg-config --libs --cflags %s" % ' '.join(packages)).split():
        kw.setdefault(flag_map.get(token[:2]), []).append(token[2:])
    return kw
 
ebb_ext = Extension( "ebb_ext"
                   , ["src/ebb_python.c"]
                   , **pkgconfig('glib-2.0', include_dirs = ['libev'])
                   )
 
setup( name = "Ebb"
     , description = "a wsgi web server"
     , version = "0.0.3"
     , author = "ry dahl"
     , author_email = "ry at tiny clouds dot org"
     , url = "http://ebb.rubyforge.org/"
     , ext_modules = [ebb_ext]
     )