Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 35 lines (31 sloc) 1.311 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 27 28 29 30 31 32 33 34
import os
import glob
from distutils.core import setup, Extension

SOURCE_FILES = [os.path.join('http-parser', 'http_parser.c')] + \
               glob.glob(os.path.join('bjoern', '*.c'))

bjoern_extension = Extension(
    'bjoern',
    sources = SOURCE_FILES,
    libraries = ['ev'],
    include_dirs = ['http-parser', '/usr/include/libev'],
    define_macros = [('WANT_SENDFILE', '1'),
                     ('WANT_SIGINT_HANDLING', '1')],
    extra_compile_args = ['-std=c99', '-fno-strict-aliasing', '-fcommon',
                          '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter',
                          '-Wno-missing-field-initializers', '-g']
)

setup(
    name = 'bjoern',
    author = 'Jonas Haag',
    author_email = 'jonas@lophus.org',
    license = '2-clause BSD',
    url = 'https://github.com/jonashaag/bjoern',
    description = 'A screamingly fast Python WSGI server written in C.',
    version = '1.3.4',
    classifiers = ['Development Status :: 4 - Beta',
                    'License :: OSI Approved :: BSD License',
                    'Programming Language :: C',
                    'Programming Language :: Python',
                    'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'],
    ext_modules = [bjoern_extension]
)
Something went wrong with that request. Please try again.