From cfd0c4886915cdf4a5c47f7f68ff55463e343b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 21 Feb 2021 21:21:47 +0700 Subject: [PATCH] python3-pwntools: do not check Python headers in build --- .../do-not-check-build-python-header.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch diff --git a/srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch b/srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch new file mode 100644 index 0000000000..56e8b6b78b --- /dev/null +++ b/srcpkgs/python3-pwntools/patches/do-not-check-build-python-header.patch @@ -0,0 +1,18 @@ +Index: setup.py +=================================================================== +--- setup.py ++++ setup.py +@@ -64,13 +64,6 @@ install_requires = ['paramiko>=1.15. + 'six>=1.12.0', + ] + +-# Check that the user has installed the Python development headers +-PythonH = os.path.join(get_python_inc(), 'Python.h') +-if not os.path.exists(PythonH): +- print("You must install the Python development headers!", file=sys.stderr) +- print("$ apt-get install python-dev", file=sys.stderr) +- sys.exit(-1) +- + # Convert README.md to reStructuredText for PyPI + long_description = '' + try: