This is an automated email from the ASF dual-hosted git repository.
bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 92769adfb1 Add back python3-devel check for autests (#9910)
92769adfb1 is described below
commit 92769adfb141c5d67120663288224eeb7e42852e
Author: Brian Neradt <[email protected]>
AuthorDate: Mon Jun 26 17:26:24 2023 -0500
Add back python3-devel check for autests (#9910)
It turns out that autest requires python3-config to be installed on the
system in order to run. Without it, pipenv install for the tests/Pipfile
fails for very non-obvious reasons. Adding python3-devel check back.
---
tests/test-env-check.sh | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tests/test-env-check.sh b/tests/test-env-check.sh
index aae6cda198..ad59aa4685 100755
--- a/tests/test-env-check.sh
+++ b/tests/test-env-check.sh
@@ -31,6 +31,15 @@ else
echo "Python 3.6 or newer detected!"
fi
+# Check for python development header which is needed for the autest pip
package.
+python3-config &> /dev/null
+if [ $? = 1 ]; then
+ echo "python3-dev/devel detected!"
+else
+ echo "python3-dev/devel is not installed. "
+ exit 1
+fi
+
# check for pipenv
pipenv --version &> /dev/null
if [ $? -eq 0 ]; then