Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snow 1790301 linux build fix (#1900) #1901

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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