@@ -132,11 +132,6 @@ function install_ziglang {
132
132
133
133
function install_python3 {
134
134
PACKAGE_MANAGER=$1
135
- if ! command -v git > /dev/null; then
136
- install_pkg git " $PACKAGE_MANAGER "
137
- fi
138
-
139
- PACKAGE_MANAGER=$1
140
135
141
136
echo " ==> installing python3..."
142
137
@@ -165,27 +160,6 @@ function install_python3 {
165
160
exit 1
166
161
;;
167
162
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
189
163
}
190
164
191
165
function install_openssl {
@@ -684,18 +658,18 @@ if [[ "$INSTALL_DEV_TOOLS" == "true" ]]; then
684
658
install_pkg graphviz " $PACKAGE_MANAGER "
685
659
install_pkg graphviz-dev " $PACKAGE_MANAGER "
686
660
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
688
662
# drivers
689
- pip install --quiet pymysql sqlalchemy clickhouse_driver
663
+ python3 -m pip install --quiet pymysql sqlalchemy clickhouse_driver
690
664
# sqllogic dependencies
691
- pip install --quiet mysql-connector-python==8.0.30
665
+ python3 -m pip install --quiet mysql-connector-python==8.0.30
692
666
fi
693
667
694
668
if [[ " $INSTALL_CODEGEN " == " true" ]]; then
695
669
install_pkg clang " $PACKAGE_MANAGER "
696
670
install_pkg llvm " $PACKAGE_MANAGER "
697
671
install_python3 " $PACKAGE_MANAGER "
698
- " ${PRE_COMMAND[@]} " pip install --quiet coscmd PyYAML
672
+ " ${PRE_COMMAND[@]} " python3 -m pip install --quiet coscmd PyYAML
699
673
fi
700
674
701
675
if [[ " $INSTALL_TPCH_DATA " == " true" ]]; then
0 commit comments