2022-04-28 06:44:37 +00:00
|
|
|
From cd4824a001133fdb88eeb7346045a1165df7ce8a Mon Sep 17 00:00:00 2001
|
2022-02-16 14:10:03 +00:00
|
|
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
|
|
|
|
Date: Wed, 16 Feb 2022 13:57:57 +0100
|
2022-04-28 06:44:37 +00:00
|
|
|
Subject: [PATCH 1/2] Unbundle llhttp
|
2022-02-16 14:10:03 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
aiohttp/_cparser.pxd | 2 +-
|
|
|
|
setup.py | 6 +-----
|
|
|
|
2 files changed, 2 insertions(+), 6 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd
|
2022-04-28 06:44:37 +00:00
|
|
|
index 165dd61d..49055d6a 100644
|
2022-02-16 14:10:03 +00:00
|
|
|
--- a/aiohttp/_cparser.pxd
|
|
|
|
+++ b/aiohttp/_cparser.pxd
|
|
|
|
@@ -10,7 +10,7 @@ from libc.stdint cimport (
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
-cdef extern from "../vendor/llhttp/build/llhttp.h":
|
|
|
|
+cdef extern from "llhttp.h":
|
|
|
|
|
|
|
|
struct llhttp__internal_s:
|
|
|
|
int32_t _index
|
|
|
|
diff --git a/setup.py b/setup.py
|
2022-04-28 06:44:37 +00:00
|
|
|
index 38436806..bf4837a3 100644
|
2022-02-16 14:10:03 +00:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
|
|
|
@@ -33,12 +33,8 @@ extensions = [
|
2021-12-24 19:13:06 +00:00
|
|
|
[
|
|
|
|
"aiohttp/_http_parser.c",
|
|
|
|
"aiohttp/_find_header.c",
|
|
|
|
- "vendor/llhttp/build/c/llhttp.c",
|
|
|
|
- "vendor/llhttp/src/native/api.c",
|
|
|
|
- "vendor/llhttp/src/native/http.c",
|
|
|
|
],
|
|
|
|
- define_macros=[("LLHTTP_STRICT_MODE", 0)],
|
|
|
|
- include_dirs=["vendor/llhttp/build"],
|
|
|
|
+ libraries=["llhttp"],
|
|
|
|
),
|
|
|
|
Extension("aiohttp._helpers", ["aiohttp/_helpers.c"]),
|
|
|
|
Extension("aiohttp._http_writer", ["aiohttp/_http_writer.c"]),
|
2022-02-16 14:10:03 +00:00
|
|
|
--
|
2022-04-28 06:44:37 +00:00
|
|
|
2.35.1
|
2022-02-16 14:10:03 +00:00
|
|
|
|