Skip to content

Commit

Permalink
script: Fixup regex matches
Browse files Browse the repository at this point in the history
- `m` need not be in the ABI
- Beta versions do not end with a number
  • Loading branch information
Synss committed May 28, 2020
1 parent eef2f82 commit 3a05109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install-pymbedtls.sh
Expand Up @@ -29,8 +29,8 @@ fi
libdir="$1"
version="${2:-*}"

python="cp$(python --version 2>&1 | perl -pe 's|^\w+\s(\d)\.(\d+)\.\d+$|\1\2|g')"
wheel="python_mbedtls-$version-$python-$python"'m*.whl'
python="cp$(python --version 2>&1 | perl -pe 's|^\w+\s(\d)\.(\d+)\.\d\w*$|\1\2|g')"
wheel="python_mbedtls-$version-$python-$python"'*.whl'

C_INCLUDE_PATH="/usr/include:$libdir/include"
LIBRARY_PATH="/usr/lib:$libdir/lib"
Expand Down

0 comments on commit 3a05109

Please sign in to comment.