add py-unicorn

This commit is contained in:
ziggi
2020-07-23 08:20:28 +00:00
parent adf7c51a96
commit 034a8cc18f
20 changed files with 198 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
--- httptools/parser/parser.c.orig 2019-02-25 19:54:42 UTC
+++ httptools/parser/parser.c
@@ -609,7 +609,7 @@ static CYTHON_INLINE float __PYX_NAN() {
#include <stdio.h>
#include "pythread.h"
#include <stdint.h>
-#include "../../vendor/http-parser/http_parser.h"
+#include "http_parser.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

View File

@@ -0,0 +1,11 @@
--- setup.py.orig 2020-02-08 00:30:40 UTC
+++ setup.py
@@ -44,7 +44,7 @@ class httptools_build_ext(build_ext):
return
super().initialize_options()
- self.use_system_http_parser = False
+ self.use_system_http_parser = True
self.cython_always = False
self.cython_annotate = None
self.cython_directives = None