Browse Source

remove implementation flag of ABI tag for python 3.8+

tags/v1.2.0-rc1
liangyongxiong 5 years ago
parent
commit
55cddef8b6
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      build/build.sh
  2. +1
    -1
      build/scripts/crc32.sh

+ 4
- 1
build/build.sh View File

@@ -27,7 +27,10 @@ rename_wheel() {
MINDINSIGHT_VERSION=$(echo "$PACKAGE_ORIG" | awk -F"-" '{print $2}')
PYTHON_VERSION_NUM=$(echo "$VERSION" | awk -F"." '{print $1$2}')
PYTHON_VERSION_TAG="cp$PYTHON_VERSION_NUM"
PYTHON_ABI_TAG="cp${PYTHON_VERSION_NUM}m"
PYTHON_ABI_TAG="cp${PYTHON_VERSION_NUM}"
if ! "$PYTHON" -c 'import sys; assert sys.version_info >= (3, 8)' &>/dev/null; then
PYTHON_ABI_TAG="${PYTHON_ABI_TAG}m"
fi
MACHINE_TAG="$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m)"
PACKAGE_NEW="mindinsight-$MINDINSIGHT_VERSION-$PYTHON_VERSION_TAG-$PYTHON_ABI_TAG-$MACHINE_TAG.whl"
mv "$PACKAGE_ORIG" "$PACKAGE_NEW"


+ 1
- 1
build/scripts/crc32.sh View File

@@ -64,7 +64,7 @@ build_crc32() {
rm -f "$CRC32_SOURCE_DIR/$CRC32_SO_FILE"
rm -f "$CRC32_OUTPUT_DIR/$CRC32_SO_FILE"

read -ra PYBIND11_INCLUDES <<<"$($PYTHON -m pybind11 --includes)"
read -ra PYBIND11_INCLUDES <<< "$($PYTHON -m pybind11 --includes)"
if [ ! -n "${PYBIND11_INCLUDES[0]}" ]; then
echo "pybind11 is required"
exit 1


Loading…
Cancel
Save