From cc1237430a0cec2e9c3f8f66af4a870eb3d88b8f Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Fri, 31 Mar 2023 10:28:43 +0100 Subject: [PATCH] pymysql: fix build (#10008) Signed-off-by: David Korczynski --- projects/pymysql/build.sh | 6 +++--- projects/pymysql/fuzz_patch.diff | 11 ----------- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 projects/pymysql/fuzz_patch.diff diff --git a/projects/pymysql/build.sh b/projects/pymysql/build.sh index 50e567b0d..84b6cf295 100644 --- a/projects/pymysql/build.sh +++ b/projects/pymysql/build.sh @@ -14,10 +14,10 @@ # limitations under the License. # ################################################################################ -git apply --ignore-space-change --ignore-whitespace $SRC/fuzz_patch.diff -pip3 install . + +python3 -m pip install . # Build fuzzers in $OUT. for fuzzer in $(find $SRC -name 'fuzz_*.py'); do - compile_python_fuzzer $fuzzer --hidden-import=pymysql.constants + compile_python_fuzzer $fuzzer done diff --git a/projects/pymysql/fuzz_patch.diff b/projects/pymysql/fuzz_patch.diff deleted file mode 100644 index 23e47887a..000000000 --- a/projects/pymysql/fuzz_patch.diff +++ /dev/null @@ -1,11 +0,0 @@ -diff --git a/pyproject.toml b/pyproject.toml -index 3793a8c..2a61b7a 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -45,5 +45,5 @@ build-backend = "setuptools.build_meta" - - [tool.setuptools.packages.find] - namespaces = false --include = ["pymysql"] -+include = ["pymysql", "pymysql.constants"] - exclude = ["tests*", "pymysql.tests*"]