Skip to content

Commit

Permalink
not editable install
Browse files Browse the repository at this point in the history
  • Loading branch information
ClausHolbechArista committed Nov 13, 2024
1 parent a899512 commit 170d306
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions containers/dev/.devcontainer/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ if [ -z "$(command -v ansible)" ]; then
ansible-galaxy collection install --force ${AVD_INSTALL_PATH}
# otherwise install requirements and collection from container workspace
elif [ -f ${CONTAINER_WORKSPACE}/python-avd/pyproject.toml ] && [ -f ${CONTAINER_WSF_AVD_PATH}/requirements-dev.txt ] ; then
# use editable install for requirements
pip install -e ${CONTAINER_WORKSPACE}/python-avd[ansible-collection] --config-settings editable_mode=compat -r ${CONTAINER_WSF_AVD_PATH}/requirements-dev.txt
# Install pyavd from source and dev requirements from file
pip install ${CONTAINER_WORKSPACE}/python-avd[ansible-collection] -r ${CONTAINER_WSF_AVD_PATH}/requirements-dev.txt
# Install arista.avd collection from source
ansible-galaxy collection install --force ${CONTAINER_WSF_AVD_PATH}
fi

Expand Down

0 comments on commit 170d306

Please sign in to comment.