Skip to content

Commit 70d0666

Browse files
committed
fix unrecognized pyarrow version via setuptools_scm
1 parent 1deb501 commit 70d0666

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

building/lambda/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WORKDIR /root
2323
FROM ${python_version}
2424
COPY pyproject.toml poetry.lock ./
2525

26-
RUN pip3 install --upgrade pip wheel
26+
RUN pip3 install --upgrade pip wheel setuptools>=64 setuptools_scm>=8
2727
RUN pip3 install --upgrade urllib3==1.26.16 # temporary to avoid https://github.com/urllib3/urllib3/issues/2168 (TODO remove when the AL2 image updates to support OpenSSL 1.1.1+)
2828
RUN pip3 install --upgrade six cython cmake hypothesis poetry
2929
RUN poetry config virtualenvs.create false --local && poetry install --no-root --only main

building/lambda/Dockerfile.al2023

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ WORKDIR /root
2323
FROM ${python_version}
2424
COPY pyproject.toml poetry.lock ./
2525

26-
RUN pip3 install --upgrade pip wheel
26+
RUN pip3 install --upgrade pip wheel setuptools>=64 setuptools_scm>=8
2727
RUN pip3 install --upgrade six cython cmake hypothesis poetry
2828
RUN poetry config virtualenvs.create false --local && poetry install --no-root --only main
2929

building/lambda/build-lambda-layer.sh

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ rm -rf dist arrow
1313
export ARROW_HOME=$(pwd)/dist
1414
export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
1515
export CMAKE_PREFIX_PATH=$ARROW_HOME:$CMAKE_PREFIX_PATH
16+
export SETUPTOOLS_SCM_PRETEND_VERSION=18.1.0
1617

1718
git clone \
1819
--depth 1 \

0 commit comments

Comments
 (0)