daml/dev-env/bin/da-virtualenv
Digital Asset GmbH 05e691f558 open-sourcing daml
2019-04-04 09:33:38 +01:00

13 lines
273 B
Bash
Executable File

#!/usr/bin/env bash
#
# Create a Python virtual environment using either 'conda create' (if
# Anaconda is installed) or with 'python3 -m venv' (otherwise).
set -e
if type conda > /dev/null 2>&1; then
conda create -p "$1" --clone root -y -q
else
python3 -m venv "$1"
fi