[Build] Migrate to Python3 (#1000)

* Configure Travis build env for Py3

Using default available version of 3.6.3 in `xenial` dist

* Migrate to py3

* Fix documentation
This commit is contained in:
Harsha Raghu
2021-09-29 00:11:04 +05:30
committed by GitHub
parent c317dc55c7
commit 3eefe5562e
2 changed files with 8 additions and 9 deletions

View File

@ -92,19 +92,15 @@ repo="https://github.com/alliedmodders/hlsdk"
origin=
checkout
python_cmd=`command -v python`
python_cmd=`command -v python3`
if [ -z "$python_cmd" ]; then
python_cmd=`command -v python3`
if [ -z "$python_cmd" ]; then
echo "No suitable installation of Python detected"
exit 1
fi
echo "No suitable installation of Python detected. Min required is 3.6"
exit 1
fi
`$python_cmd -c "import ambuild2"` 2>&1 1>/dev/null
if [ $? -eq 1 ]; then
echo "AMBuild is required to build SourceMod"
echo "AMBuild is required to build AMXModX"
`$python_cmd -m pip --version` 2>&1 1>/dev/null
if [ $? -eq 1 ]; then