mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 09:05:47 +08:00
[CI][Python] Use Python 3 on macOS
Currently, Python 2 is used.
This commit is contained in:
1 parent
e2f877cab9
commit
240ab77430
2 files changed
+9
-6
No files matched your search
@@ -160,6 +160,7 @@ jobs:
|
||||
ARROW_WITH_SNAPPY: ON
|
||||
ARROW_WITH_BROTLI: ON
|
||||
ARROW_BUILD_TESTS: OFF
|
||||
CMAKE_ARGS: "-DPYTHON_EXECUTABLE=/usr/local/bin/python3"
|
||||
steps:
|
||||
- name: Checkout Arrow
|
||||
uses: actions/checkout@v1
|
||||
@@ -170,12 +171,13 @@ jobs:
|
||||
run: |
|
||||
brew bundle --file=cpp/Brewfile
|
||||
brew install coreutils python
|
||||
pip install -r python/requirements.txt \
|
||||
-r python/requirements-test.txt \
|
||||
cython
|
||||
pip3 install -r python/requirements.txt \
|
||||
-r python/requirements-test.txt \
|
||||
cython
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
export PYTHON=python3
|
||||
ci/scripts/cpp_build.sh $(pwd)
|
||||
ci/scripts/python_build.sh $(pwd)
|
||||
- name: Test
|
||||
|
||||
@@ -39,8 +39,9 @@ pushd ${source_dir}
|
||||
relative_build_dir=$(realpath --relative-to=. $build_dir)
|
||||
|
||||
# not nice, but prevents mutating the mounted the source directory for docker
|
||||
python setup.py build --build-base $build_dir \
|
||||
install --single-version-externally-managed \
|
||||
--record $relative_build_dir/record.txt
|
||||
${PYTHON:-python} \
|
||||
setup.py build --build-base $build_dir \
|
||||
install --single-version-externally-managed \
|
||||
--record $relative_build_dir/record.txt
|
||||
|
||||
popd
|
||||
Reference in new issue
Block a user