Skip to content

Commit

Permalink
Force to use Python 3.11 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pjob authored Nov 13, 2024
1 parent 2614dc1 commit f1f3562
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Formula/snowcli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class Snowcli < Formula
url "https://files.pythonhosted.org/packages/22/33/fcca760c683ecdcb9b046491fbcd4a55ade65e69878f5e7851774f9ca1cc/snowflake_cli-3.1.0.tar.gz"
sha256 "88cb6face57aa8edffd4b35a112671ac206dbf1cf6eee4eeaa0f1e85676cc969"

depends_on "python3"
depends_on "[email protected]"

def install
ENV["CARGO_NET_GIT_FETCH_WITH_CLI"] = "true"
venv = virtualenv_create(libexec, "python3", system_site_packages: false)
venv = virtualenv_create(libexec, "python3.11", system_site_packages: false)
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
"-m", "ensurepip", "--upgrade"
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
Expand Down
4 changes: 2 additions & 2 deletions Formula/snowcli.tmpl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class Snowcli < Formula
url "{{ sf_url }}"
sha256 "{{ sf_sha }}"

depends_on "python3"
depends_on "[email protected]"

def install
ENV["CARGO_NET_GIT_FETCH_WITH_CLI"] = "true"
venv = virtualenv_create(libexec, "python3", system_site_packages: false)
venv = virtualenv_create(libexec, "python3.11", system_site_packages: false)
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
"-m", "ensurepip", "--upgrade"
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
Expand Down
4 changes: 2 additions & 2 deletions Formula/snowflake-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class SnowflakeCli < Formula
url "https://files.pythonhosted.org/packages/22/33/fcca760c683ecdcb9b046491fbcd4a55ade65e69878f5e7851774f9ca1cc/snowflake_cli-3.1.0.tar.gz"
sha256 "88cb6face57aa8edffd4b35a112671ac206dbf1cf6eee4eeaa0f1e85676cc969"

depends_on "python3"
depends_on "[email protected]"

def install
ENV["CARGO_NET_GIT_FETCH_WITH_CLI"] = "true"
venv = virtualenv_create(libexec, "python3", system_site_packages: false)
venv = virtualenv_create(libexec, "python3.11", system_site_packages: false)
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
"-m", "ensurepip", "--upgrade"
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
Expand Down
4 changes: 2 additions & 2 deletions Formula/snowflake-cli.tmpl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class SnowflakeCli < Formula
url "{{ sf_url }}"
sha256 "{{ sf_sha }}"

depends_on "python3"
depends_on "[email protected]"

def install
ENV["CARGO_NET_GIT_FETCH_WITH_CLI"] = "true"
venv = virtualenv_create(libexec, "python3", system_site_packages: false)
venv = virtualenv_create(libexec, "python3.11", system_site_packages: false)
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
"-m", "ensurepip", "--upgrade"
venv.instance_variable_get(:@formula).system venv.instance_variable_get(:@venv_root)/"bin/python",
Expand Down

0 comments on commit f1f3562

Please sign in to comment.