Skip to content

Commit

Permalink
Snow 1790301 linux build fix (#1900)
Browse files Browse the repository at this point in the history
* SNOW-1790301: downgrade python to 3.10
  • Loading branch information
sfc-gh-mraba authored Nov 26, 2024
1 parent a97d5ad commit 61ec0eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
## New additions

## Fixes and improvements
* Fixed crashes with older x86_64 Intel CPUs.

# v3.2.0

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ test-cov = [
legacy-pypi-build = [".compat/build_snowflake-cli-labs.sh"]

[tool.hatch.envs.packaging]
python = "3.11"
python = "3.10"
features = ["development", "packaging"]

[tool.hatch.envs.packaging.scripts]
Expand Down
17 changes: 8 additions & 9 deletions scripts/packaging/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,16 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt install -y tk-dev
RUN gem install dotenv -v 2.8.1
RUN gem install fpm

RUN curl https://pyenv.run | bash
RUN echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
RUN echo 'export PATH=$PYENV_ROOT/bin:$PATH' >> ~/.bashrc
RUN echo 'eval "$(pyenv init -)"' >> ~/.bashrc
ENV PYENV_ROOT="${HOME}/.pyenv"
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:$PATH"
ENV PYTHON_VERSION=3.10

ENV PYENV_ROOT=$HOME/.pyenv
ENV PATH=$PYENV_ROOT/bin:$PATH
RUN eval "$(pyenv init -)"
RUN pyenv install 3.10
RUN pyenv global 3.10
RUN curl https://pyenv.run | bash
RUN pyenv install ${PYTHON_VERSION}
RUN pyenv rehash
RUN pyenv global ${PYTHON_VERSION}
RUN pyenv versions
RUN pyenv rehash
RUN pyenv exec pip install -U pip uv hatch

WORKDIR /snowflake-cli

0 comments on commit 61ec0eb

Please sign in to comment.