Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (32 sloc) 1.343 kB
dbb7166 @kkris added setup.py
kkris authored
1 import os
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
2 import glob
dbb7166 @kkris added setup.py
kkris authored
3 from distutils.core import setup, Extension
4
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
5 SOURCE_FILES = [os.path.join('http-parser', 'http_parser.c')] + \
6 glob.glob(os.path.join('bjoern', '*.c'))
7
8 bjoern_extension = Extension(
d88bf35 @Logout22 Updated setup.py
Logout22 authored
9 '_bjoern',
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
10 sources = SOURCE_FILES,
11 libraries = ['ev'],
ab8a3a7 @Shumen fix compiling error "bjoern/request.h:4:16: error:ev.h:no such file o…
Shumen authored
12 include_dirs = ['http-parser', '/usr/include/libev'],
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
13 define_macros = [('WANT_SENDFILE', '1'),
14 ('WANT_SIGINT_HANDLING', '1')],
b7f508f @patricklucas Drop -Wno-unused and add flags to Makefile
patricklucas authored
15 extra_compile_args = ['-std=c99', '-fno-strict-aliasing', '-fcommon',
16 '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter',
17 '-Wno-missing-field-initializers', '-g']
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
18 )
dbb7166 @kkris added setup.py
kkris authored
19
20 setup(
cd610f9 @jonashaag new metadata in setup.py
authored
21 name = 'bjoern',
22 author = 'Jonas Haag',
23 author_email = 'jonas@lophus.org',
24 license = '2-clause BSD',
25 url = 'https://github.com/jonashaag/bjoern',
26 description = 'A screamingly fast Python WSGI server written in C.',
828dcf1 @jonashaag Version 1.4.2
authored
27 version = '1.4.2',
ade8b34 @jonashaag add classifiers
authored
28 classifiers = ['Development Status :: 4 - Beta',
29 'License :: OSI Approved :: BSD License',
30 'Programming Language :: C',
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
31 'Programming Language :: Python',
ade8b34 @jonashaag add classifiers
authored
32 'Topic :: Internet :: WWW/HTTP :: WSGI :: Server'],
d88bf35 @Logout22 Updated setup.py
Logout22 authored
33 py_modules = ['bjoern'],
0cd4c13 @jonashaag setup.py cleanup, thanks to gorakhargosh for the hints
authored
34 ext_modules = [bjoern_extension]
dbb7166 @kkris added setup.py
kkris authored
35 )
Something went wrong with that request. Please try again.