ghubstan 49404cebc5
Reorganize the python-examples module
- Use requirements.txt to install dependencies to local venv.
- Use setup.py to build/install example packages to local venv.
- Adjust reference-doc-builder to new Python pkg imports.
2022-03-17 12:44:28 -03:00

21 lines
452 B
Bash
Executable File

#! /bin/bash
# This script must be run from this directory.
# Install python3-venv if necessary.
# sudo apt install python3-venv
# Install Python setuptools if necessary.
# pip install setuptools
# Set up Python environment in python-examples directory.
rm -rf myvenv
python -m venv myvenv
source ./myvenv/bin/activate
# Install Python example dependencies.
pip install -r requirements.txt
# Install API example packages in myvenv.
pip install .