Hello,

I am trying to build a stripped down python 3.8 wheel from tag apache-arrow-3.0.0. I am building it using

docker-compose run -e PYTHON=3.8 -e PYTHON_VERSION=3.8 python-wheel-manylinux-2014
however, it is being built using python 3.6.

The final wheel gets tagged with pyarrow-3.0.0-cp36-cp36m-manylinux2014_x86_64.whl and looking through the build log I can see that cmake decides to use python 3.6 even though python 3.8 is available in the manylinux image.

cmake -DARROW_BROTLI_USE_SHARED=OFF -DARROW_BUILD_SHARED=ON -DARROW_BUILD_STATIC=OFF -DARROW_BUILD_TESTS=OFF -DARROW_DATASET=ON -DARROW_DEPENDENCY_SOURCE=SYSTEM -DARROW_DEPENDENCY_USE_SHARED=OFF -DARROW_FLIGHT==OFF -DARROW_GANDIVA=OFF -DARROW_HDFS=OFF -DARROW_JEMALLOC=ON -DARROW_MIMALLOC=ON -DARROW_ORC=OFF -DARROW_PACKAGE_KIND=manylinux2014 -DARROW_PARQUET=ON -DARROW_PLASMA=OFF -DARROW_PYTHON=ON -DARROW_RPATH_ORIGIN=ON -DARROW_S3=OFF -DARROW_TENSORFLOW=OFF -DARROW_USE_CCACHE=ON -DARROW_UTF8PROC_USE_SHARED=OFF -DARROW_WITH_BROTLI=OFF -DARROW_WITH_BZ2=OFF -DARROW_WITH_LZ4=ON -DARROW_WITH_SNAPPY=ON -DARROW_WITH_ZLIB=ON -DARROW_WITH_ZSTD=ON -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_INSTALL_PREFIX=/tmp/arrow-dist -DCMAKE_TOOLCHAIN_FILE=/opt/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_UNITY_BUILD=OFF -DOPENSSL_USE_STATIC_LIBS=ON -DThrift_ROOT=/opt/vcpkg/installed/x64-linux/lib -DVCPKG_TARGET_TRIPLET=x64-linux-static-release -G Ninja /arrow/cpp
-- Building using CMake version: 3.19.2
-- The C compiler identification is GNU 9.3.1
-- The CXX compiler identification is GNU 9.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/rh/devtoolset-9/root/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/rh/devtoolset-9/root/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Arrow version: 3.0.0 (full: '3.0.0')
-- Arrow SO version: 300 (full: 300.0.0)
-- clang-tidy not found
-- clang-format not found
-- Could NOT find ClangTools (missing: CLANG_FORMAT_BIN CLANG_TIDY_BIN) 
-- infer not found
-- Found Python3: /opt/python/cp36-cp36m/bin/python3.6 (found version "3.6.12") found components: Interpreter

Am I missing some config to make it build a python 3.8 wheel?

Thanks.