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:
ryah (author)
Tue Apr 08 07:50:50 -0700 2008
commit  8f16a4f26257e8063b8aa82e6e2c0a11b7eb3f8a
tree    4c60de9a19fdfb349ef60bef7364ae1a483b55b0
parent  330364ac2933ad98948bd1a9089fa06174a13033
ebb / setup.py
100644 26 lines (23 sloc) 0.912 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
25
26
#!/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_ffi = Extension( "ebb_ffi"
                   , ["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.1"
     , author = "ry dahl"
     , author_email = "ry at tiny clouds dot org"
     , url = "http://ebb.rubyforge.org/"
     , packages = ['ebb']
     , package_dir = {'ebb': 'python_lib'}
     , ext_modules = [ebb_ffi]
     )