GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of ry/ebb
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/gnosek/ebb.git
Ryan Dahl (author)
Sat Mar 22 09:45:12 -0700 2008
commit  d478f914fae8664eadf84f7a2fe438ab0dc99d62
tree    9d55bdc820417a934d390b3657df42729ca3efe4
parent  9d81073a9238c892c39ca51b05ebb22a05fe0675
ebb / setup.py
100644 24 lines (21 sloc) 0.819 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 = Extension( "ebb"
               , ["src/ebb_python.c", "src/ebb.c", "src/parser.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]
     )