Skip to content

Commit

Permalink
Minimize powershell usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Jan 6, 2025
1 parent 3b7e272 commit e51b395
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,20 @@ RUN $filename = 'python-3.13.1-amd64.exe'; \

ENV PYTHON_CMD="py -3.13t"

RUN $Env:PYTHON_CMD -m pip install -U pip setuptools
SHELL ["cmd", "/S", "/C"]
RUN %PYTHON_CMD% -m pip install -U pip setuptools

COPY python/requirements-wheel-test.txt arrow/python/
# Cython and Pandas wheels for 3.13 free-threaded are not released yet
RUN $Env:PYTHON_CMD -m pip install \
RUN %PYTHON_CMD% -m pip install \
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--pre \
--prefer-binary \
-r arrow/python/requirements-wheel-test.txt
# 1. cffi-based tests would crash when importing cffi.
# 2. cython-based tests would crash when importing the compiled extension module
# (presumably because of https://github.com/pypa/setuptools/issues/4662)
RUN $Env:PYTHON_CMD -m pip uninstall -y cffi cython
RUN %PYTHON_CMD% -m pip uninstall -y cffi cython

ENV PYTHON="3.13t"
ENV PYTHON_GIL=0
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ RUN $filename = 'python-3.13.1-amd64.exe'; \

ENV PYTHON_CMD="py -3.13t"

RUN $Env:PYTHON_CMD -m pip install -U pip setuptools
SHELL ["cmd", "/S", "/C"]
RUN %PYTHON_CMD% -m pip install -U pip setuptools

COPY python/requirements-wheel-build.txt arrow/python/
# Cython wheels for 3.13 free-threaded are not released yet
RUN $Env:PYTHON_CMD -m pip install \
RUN %PYTHON_CMD% -m pip install \
--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
--pre \
--prefer-binary \
cython
RUN $Env:PYTHON_CMD -m pip install -r arrow/python/requirements-wheel-build.txt
RUN %PYTHON_CMD% -m pip install -r arrow/python/requirements-wheel-build.txt

ENV PYTHON="3.13t"

0 comments on commit e51b395

Please sign in to comment.