2020-10-06 14:14:12 +02:00
|
|
|
#! /usr/bin/pwsh
|
|
|
|
|
|
2022-09-19 09:48:46 +02:00
|
|
|
# while waiting for the next release of `virtualenv` after v20.16.5, we install an older
|
|
|
|
|
# version of `setuptools` to ensure that binaries are always put under
|
|
|
|
|
# `<venv-path>/bin`, which wouldn't always happen with the GitHub actions version of
|
|
|
|
|
# Ubuntu 22.04. See https://github.com/github/codeql-action/issues/1249
|
|
|
|
|
py -2 -m pip install --user --upgrade pip 'setuptools<60' wheel
|
|
|
|
|
py -3 -m pip install --user --upgrade pip 'setuptools<60' wheel
|
2020-10-06 14:14:12 +02:00
|
|
|
|
|
|
|
|
# virtualenv is a bit nicer for setting up virtual environment, since it will provide up-to-date versions of
|
|
|
|
|
# pip/setuptools/wheel which basic `python3 -m venv venv` won't
|
2022-09-16 20:49:42 +02:00
|
|
|
py -2 -m pip install --user 'virtualenv!=20.12.0'
|
|
|
|
|
py -3 -m pip install --user virtualenv
|
2020-10-06 14:14:12 +02:00
|
|
|
|
2022-09-19 12:16:43 +02:00
|
|
|
py -3 -m pip install --user "poetry>=1.1"
|
2022-01-01 18:15:28 -08:00
|
|
|
py -3 -m pip install --user pipenv
|