45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
From 04c7dcc0461852f83c079955612453c2a7672ec1 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>
|
|
Date: Wed, 16 Feb 2022 13:57:57 +0100
|
|
Subject: [PATCH] unbundle llhttp
|
|
|
|
---
|
|
aiohttp/_cparser.pxd | 2 +-
|
|
setup.py | 6 +-----
|
|
2 files changed, 2 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/aiohttp/_cparser.pxd b/aiohttp/_cparser.pxd
|
|
index 165dd61..49055d6 100644
|
|
--- 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
|
|
index 3843680..bf4837a 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -33,12 +33,8 @@ extensions = [
|
|
[
|
|
"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"]),
|
|
--
|
|
2.33.1
|
|
|