File: install_full.sh

package info (click to toggle)
azure-cli 2.82.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,359,416 kB
  • sloc: python: 1,910,381; sh: 1,343; makefile: 406; cs: 145; javascript: 74; sql: 37; xml: 21
file content (22 lines) | stat: -rwxr-xr-x 1,171 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash

#######################################################################################################################
# This script installs all dependencies found in this repository directly, without transitive dependencies, then uses
# the appropriate requirements.txt file to install all transitive dependencies.
#
# NOTE: It should be invoked from an activated virtual environment, unless targeting system python directly is
# acceptable.
#
# The intention is to allow packagers, people working with the RPM spec or debian rules file for example, to not have
# duplicate that logic required to install from source what is distributed in this repository and via PyPI for items
# living outside of this repository.
#######################################################################################################################

REPO_ROOT="$(dirname ${BASH_SOURCE[0]})/.."

pushd ${REPO_ROOT} > /dev/null

find src/ -name setup.py -type f | xargs -I {} dirname {} | grep -v azure-cli-testsdk | xargs pip install --no-deps
pip install -r ./src/azure-cli/requirements.$(python ./scripts/get-python-version.py).$(uname).txt

popd > /dev/null