Skip to content

Commit 23c74fe

Browse files
committed
use setuptools to install http_parser.
this patch add support for setuptools in http_parser instead of pure distutils. soe part of the setup is based on the gevent one.
1 parent fe8a63a commit 23c74fe

File tree

5 files changed

+561
-580
lines changed

5 files changed

+561
-580
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ setuptools-*
1010
.svn/*
1111
.DS_Store
1212
*.so
13+
http_parser/parser.so
1314
http_parser.egg-info
1415
nohup.out
1516
.coverage

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ include LICENSE
33
include NOTICE
44
include README.rst
55
include THANKS
6+
include Makefile.ext
67
recursive-include http_parser *
78
recursive-include examples *

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is renamed to "Makefile.ext" in release tarballs so that
2+
# setup.py won't try to run it. If you want setup.py to run "make"
3+
# automatically, rename it back to "Makefile".
4+
5+
all: http_parser/parser.c
6+
7+
http_parser/parser.c: http_parser/parser.pyx
8+
cython -o http_parser.parser.c http_parser/parser.pyx
9+
mv http_parser.parser.c http_parser/parser.c
10+
11+
clean:
12+
rm -f http_parser/parser.c
13+
14+
15+
.PHONY: clean all

0 commit comments

Comments
 (0)