blob: cc5da72781f62702667ff2380460b6b529dadcd2 [file] [log] [blame]
Jeremy Johnson2ec34942021-12-14 16:34:05 +00001# Copyright (c) 2021-2022 Arm Limited.
2# SPDX-License-Identifier: Apache-2.0
3
4# Source this script to install the python tosa tools as editable:
5# . scripts/py-dev-env.sh
6
7# NOTE: This script is needed to fix up PYTHONPATH due to a bug
8# in setuptools that does not support multiple package_dirs
9# properly: https://github.com/pypa/setuptools/issues/230
10
11if [ -z "$VIRTUAL_ENV" ]; then
12 echo "Please source this within a python virtual env"
13 return
14fi
15
16if [ -e "setup.cfg" ]; then
17 pip install -e .
Jeremy Johnson6c6467f2022-05-17 15:30:56 +010018 pip install pytest
Jeremy Johnson2ec34942021-12-14 16:34:05 +000019 export PYTHONPATH=$PWD/scripts:$PWD/thirdparty/serialization_lib/python
20 echo "Set PYTHONPATH=$PYTHONPATH"
21else
22 echo "Please source this from the root of reference_model"
23fi