Skip to content

Commit da9b492

Browse files
authored
refactor(query): revert dev_setup (#15516)
1 parent 5c408b8 commit da9b492

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

scripts/setup/dev_setup.sh

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,6 @@ function install_ziglang {
132132

133133
function install_python3 {
134134
PACKAGE_MANAGER=$1
135-
if ! command -v git > /dev/null; then
136-
install_pkg git "$PACKAGE_MANAGER"
137-
fi
138-
139-
PACKAGE_MANAGER=$1
140135

141136
echo "==> installing python3..."
142137

@@ -165,27 +160,6 @@ function install_python3 {
165160
exit 1
166161
;;
167162
esac
168-
169-
echo "==> installing pyenv..."
170-
curl https://pyenv.run | bash
171-
# Check if pyenv is already initialized in the profile
172-
if ! command -v pyenv >/dev/null; then
173-
# Add PYENV_ROOT to the profile
174-
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> $HOME/.profile
175-
# Check if pyenv is in the PATH
176-
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> $HOME/.profile
177-
# Initialize pyenv in the profile
178-
echo 'eval "$(pyenv init -)"' >> ~/.profile
179-
echo "pyenv environment variables have been added to ~/.profile"
180-
else
181-
echo "pyenv is already set in the environment variables."
182-
fi
183-
184-
# Source the profile to apply changes to the current session
185-
source $HOME/.profile
186-
pyenv install 3.12.2
187-
pyenv global 3.12.2
188-
pip install --upgrade pip setuptools wheel
189163
}
190164

191165
function install_openssl {
@@ -684,18 +658,18 @@ if [[ "$INSTALL_DEV_TOOLS" == "true" ]]; then
684658
install_pkg graphviz "$PACKAGE_MANAGER"
685659
install_pkg graphviz-dev "$PACKAGE_MANAGER"
686660
fi
687-
pip install --quiet boto3 "moto[all]" black shfmt-py toml yamllint
661+
python3 -m pip install --quiet boto3 "moto[all]" black shfmt-py toml yamllint
688662
# drivers
689-
pip install --quiet pymysql sqlalchemy clickhouse_driver
663+
python3 -m pip install --quiet pymysql sqlalchemy clickhouse_driver
690664
# sqllogic dependencies
691-
pip install --quiet mysql-connector-python==8.0.30
665+
python3 -m pip install --quiet mysql-connector-python==8.0.30
692666
fi
693667

694668
if [[ "$INSTALL_CODEGEN" == "true" ]]; then
695669
install_pkg clang "$PACKAGE_MANAGER"
696670
install_pkg llvm "$PACKAGE_MANAGER"
697671
install_python3 "$PACKAGE_MANAGER"
698-
"${PRE_COMMAND[@]}" pip install --quiet coscmd PyYAML
672+
"${PRE_COMMAND[@]}" python3 -m pip install --quiet coscmd PyYAML
699673
fi
700674

701675
if [[ "$INSTALL_TPCH_DATA" == "true" ]]; then

0 commit comments

Comments
 (0)