diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index b32ff90325d7..69c702548b6f 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -16,7 +16,7 @@ runs: environment-file: conda/build-environment.yaml auto-activate-base: false use-only-tar-bz2: true - python-version: 3.7 + python-version: 3.8 condarc-file: conda/condarc - uses: conda-incubator/setup-miniconda@v2 if: steps.conda1.outcome == 'failure' @@ -26,7 +26,7 @@ runs: environment-file: conda/build-environment.yaml auto-activate-base: false use-only-tar-bz2: true - python-version: 3.7 + python-version: 3.8 condarc-file: conda/condarc - name: Conda info shell: pwsh diff --git a/conda/build-environment.yaml b/conda/build-environment.yaml index a1b43eb6ef0c..9a8ed85214c1 100644 --- a/conda/build-environment.yaml +++ b/conda/build-environment.yaml @@ -25,13 +25,13 @@ channels: # The packages to install to the environment dependencies: - - python=3.7 # or 3.8. See https://github.com/apache/tvm/issues/8577 for more details on >= 3.9 + - python=3.8 # See https://github.com/apache/tvm/issues/8577 for more details on >= 3.9 - conda-build - git - llvmdev >=11 - numpy - pytest - - cython + - cython>=0.29.31 - cmake - bzip2 - make diff --git a/docker/install/ubuntu_install_python_package.sh b/docker/install/ubuntu_install_python_package.sh index ba5d47bfcc48..41c8697f4234 100755 --- a/docker/install/ubuntu_install_python_package.sh +++ b/docker/install/ubuntu_install_python_package.sh @@ -25,7 +25,7 @@ pip3 install --upgrade \ "Pygments>=2.4.0" \ attrs \ cloudpickle \ - cython==0.29.34 \ + cython \ decorator \ mypy \ numpy==1.21.* \ diff --git a/python/tvm/_ffi/_cython/ndarray.pxi b/python/tvm/_ffi/_cython/ndarray.pxi index 9d0eeff0b07d..51e0e91a7691 100644 --- a/python/tvm/_ffi/_cython/ndarray.pxi +++ b/python/tvm/_ffi/_cython/ndarray.pxi @@ -21,7 +21,7 @@ cdef const char* _c_str_dltensor = "dltensor" cdef const char* _c_str_used_dltensor = "used_dltensor" -cdef void _c_dlpack_deleter(object pycaps): +cdef void _c_dlpack_deleter(object pycaps) noexcept: cdef DLManagedTensor* dltensor if pycapsule.PyCapsule_IsValid(pycaps, _c_str_dltensor): dltensor = pycapsule.PyCapsule_GetPointer(pycaps, _c_str_dltensor)