Wrapper around the SmartPy install scripts.
-
Basic conda setup:
- download Miniconda
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
- install it
$ bash Miniconda3-latest-Linux-x86_64.sh
- reload your terminal, so that
base
environment is activated - install essential packages
$ conda install -c conda-forge "mamba>0.18"
-
Create conda environment (double-check that name in
environment.yaml
coincides with the one in the commands below!); usingupdate
as proposed here:$ conda create -n nodejs-env $ mamba env update -n nodejs-env --file environment.yaml
-
Activate it:
$ conda activate
- Install
pre-commit
(config provided in this repo)$ pre-commit install
- (optional) Run against all the files to check the consistency
$ pre-commit run --all-files
- You may also run
black
andisort
to keep the files style-compliant$ isort .; black .
- Proposed linter is
flake8
$ flake8 .
python -m pip install -e .
python -m pip uninstall smartpy-installer