Choose poetry env python version earlier (#71)
This commit is contained in:
8
setup.sh
8
setup.sh
@@ -57,9 +57,14 @@ remove_poetry_env() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Choose python version
|
||||||
|
choose_python_version_or_fail() {
|
||||||
|
poetry env use python3.11 || { echo "Error: Python 3.11 is not installed."; exit 1; }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Function to install dependencies
|
# Function to install dependencies
|
||||||
install_dependencies() {
|
install_dependencies() {
|
||||||
poetry env use python3.11
|
|
||||||
poetry install
|
poetry install
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,6 +133,7 @@ create_organization() {
|
|||||||
# Main function
|
# Main function
|
||||||
main() {
|
main() {
|
||||||
initialize_env_file
|
initialize_env_file
|
||||||
|
choose_python_version_or_fail
|
||||||
remove_poetry_env
|
remove_poetry_env
|
||||||
install_dependencies
|
install_dependencies
|
||||||
setup_postgresql
|
setup_postgresql
|
||||||
|
|||||||
Reference in New Issue
Block a user