aboutsummaryrefslogtreecommitdiffstats
path: root/prepare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'prepare.sh')
-rwxr-xr-xprepare.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/prepare.sh b/prepare.sh
new file mode 100755
index 0000000..75e1108
--- /dev/null
+++ b/prepare.sh
@@ -0,0 +1,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