python3-pwntools: do not check Python headers in build

This commit is contained in:
Đoàn Trần Công Danh 2021-02-21 21:21:47 +07:00
parent 1800fb667d
commit cfd0c48869

View file

@ -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: