File: setup.sh

package info (click to toggle)
python-bytecode 0.16.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 780 kB
  • sloc: python: 8,300; makefile: 169; sh: 40
file content (25 lines) | stat: -rw-r--r-- 410 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash -eu

set -e
set -u

PREFIX=${1}-${2}
PY=${2}

# Clone boto3
test -d ${PREFIX}/boto3 || git clone --depth=1 https://github.com/boto/boto3.git ${PREFIX}/boto3

# Create venv
python$PY -m venv ${PREFIX}/.venv
source ${PREFIX}/.venv/bin/activate

# Install bytecode
pip install setuptools wheel
pip install -e .

# Install dependencies
cd ${PREFIX}/boto3
    python scripts/ci/install
cd -

deactivate