File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed
Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,11 @@ export ARROW_HOME=${build_dir}/install
228228# Set PyArrow version explicitly
229229export SETUPTOOLS_SCM_PRETEND_VERSION=${PYARROW_VERSION}
230230
231+ # Meson sdist requires setuptools_scm to be able to get the version from git
232+ git config --global --add safe.directory ${source_dir}
233+
231234pushd ${source_dir} /python
232- python -m build --wheel . \
235+ python -m build --sdist -- wheel . \
233236 -Csetup-args=" -Dbuildtype=${PYARROW_BUILD_TYPE} " \
234237 -Csetup-args=" -Dacero=${PYARROW_WITH_ACERO} " \
235238 -Csetup-args=" -Dazure=${PYARROW_WITH_AZURE} " \
Original file line number Diff line number Diff line change @@ -193,14 +193,17 @@ if %ARROW_S3% == ON (
193193 set PYARROW_WITH_S3 = auto
194194)
195195
196+ @ REM Meson sdist requires setuptools_scm to be able to get the version from git
197+ git config --global --add safe.directory C:\arrow
198+
196199pushd C:\arrow\python
197200
198201@ REM TODO: Remove once docker rebuild works correctly
199202@ REM See: https://github.com/apache/arrow/issues/48947
200203%PYTHON_CMD% -m pip install -U build || exit /B 1
201204
202205@ REM Build wheel
203- %PYTHON_CMD% -m build --wheel . ^
206+ %PYTHON_CMD% -m build --sdist -- wheel . ^
204207 -Csetup-args=" -Dbuildtype=%CMAKE_BUILD_TYPE% " ^
205208 -Csetup-args=" -Dacero=%PYARROW_WITH_ACERO% " ^
206209 -Csetup-args=" -Ddataset=%PYARROW_WITH_DATASET% " ^
Original file line number Diff line number Diff line change @@ -219,8 +219,11 @@ export ARROW_HOME=/tmp/arrow-dist
219219# PyArrow build configuration
220220export CMAKE_PREFIX_PATH=/tmp/arrow-dist
221221
222+ # Meson sdist requires setuptools_scm to be able to get the version from git
223+ git config --global --add safe.directory /arrow
224+
222225pushd /arrow/python
223- python -m build --wheel . \
226+ python -m build --sdist -- wheel . \
224227 -Csetup-args=" -Dbuildtype=${PYARROW_BUILD_TYPE} " \
225228 -Csetup-args=" -Dacero=${PYARROW_WITH_ACERO} " \
226229 -Csetup-args=" -Dazure=${PYARROW_WITH_AZURE} " \
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments