refactor: stop using private pypi (#132)
* refactor: stop using private pypi This was required because our repos were not public. Now that they are, people can directly access our Python packages and therefore they don't need access to our private codeartifact anymore * docs: add a list of dependencies in the readme and early check in the setup env script --------- Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
command_exists() {
|
||||
command -v "$1" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# Map of dependencies to their binaries (used to check if they are installed)
|
||||
declare -A dependencies=(
|
||||
["git"]="git"
|
||||
["rust"]="rustc"
|
||||
["gcc"]="gcc"
|
||||
["openssl"]="openssl"
|
||||
["pkg-config"]="pkg-config"
|
||||
["conda"]="conda"
|
||||
["pip"]="pip"
|
||||
["libpq"]="pg_config"
|
||||
)
|
||||
|
||||
# Check each dependency
|
||||
for dep in "${!dependencies[@]}"; do
|
||||
binary=${dependencies[$dep]}
|
||||
if ! command_exists "$binary"; then
|
||||
echo "Error: '$dep' is not installed."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
echo "All dependencies are installed. Proceeding with setup..."
|
||||
|
||||
# Variables
|
||||
ENV_NAME="tycho-protocol-sdk-testing"
|
||||
PYTHON_VERSION="3.9"
|
||||
@@ -15,8 +42,7 @@ source activate $ENV_NAME
|
||||
|
||||
# Install the requirements
|
||||
echo "Installing the requirements from ${REQUIREMENTS_FILE}..."
|
||||
source ./pre_build.sh
|
||||
pip install -r $REQUIREMENTS_FILE
|
||||
pip install -r $REQUIREMENTS_FILE --index-url https://pypi.org/simple
|
||||
conda activate $ENV_NAME
|
||||
|
||||
echo "Setup complete."
|
||||
Reference in New Issue
Block a user