aboutsummaryrefslogtreecommitdiffstats
path: root/prepare.sh
blob: 75e1108c5cbb8f412e5c1e2c23c9df437876cb5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
########################################################################
# Copyright (c) 2018 Huawei Technologies Co.,Ltd and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Run this script to setup Auto virtualenv and install Auto modules into
# it.
# Usage:
#       bash prepare.sh
########################################################################

pip install virtualenv
virtualenv venv
source ./venv/bin/activate
pip install setuptools
AUTO_DIR=$(pwd)
cat << EOF >> venv/bin/activate
export AUTO_DIR=$AUTO_DIR
EOF
python setup.py install