pip and venv#

End-to-end walk-through with pip and venv. Both are part of a python installation, so there is no other package manager to install.

Producer side#

Create an environment, install ewoks in it and store a workflow with the packages of that environment as its requirements.

python3 -m venv ewoks_producer
source ewoks_producer/bin/activate
pip install ewoks
ewoks convert demo demo.json --test
deactivate

Install any package that provides tasks instead of ewoks for a real workflow.

Re-producer side#

Only ewoks itself is needed to recreate the environment of demo.json

python3 -m venv ewoks_reproducer
source ewoks_reproducer/bin/activate
pip install ewoks
ewoks install demo.json --yes --env-root ewoks_envs

The environment of the workflow is a virtual environment in ewoks_envs/demo.

Execute the workflow#

ewoks execute --env ewoks_envs/demo demo.json --outputs=all

Clean up#

deactivate
rm -rf ewoks_producer ewoks_reproducer ewoks_envs demo.json