Skip to content

Commit 746d459

Browse files
committed
Remove unnecessary links, we already copy licenses on generate_dist.py. Build wheel from built sdist
1 parent 00be9c8 commit 746d459

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

ci/scripts/python_wheel_macos_build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,11 @@ export ARROW_HOME=${build_dir}/install
228228
# Set PyArrow version explicitly
229229
export 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+
231234
pushd ${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}" \

ci/scripts/python_wheel_windows_build.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
196199
pushd 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%" ^

ci/scripts/python_wheel_xlinux_build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,11 @@ export ARROW_HOME=/tmp/arrow-dist
219219
# PyArrow build configuration
220220
export 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+
222225
pushd /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}" \

python/LICENSE.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

python/NOTICE.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)