mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
13 lines
273 B
Bash
Executable File
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
|