Installation on macOS¶
This guide covers the following topics:
Note
This guide relies heavily on command-line tools. It assumes you are the least familiar with the macOS Terminal application.
Installing Dependencies¶
Install those packages or make sure you have them in your system.
Downloading the Repository¶
Simply check out the ScientificPython’s repository using:
Users-name:~ User$ git clone --depth=1 https://gitlab.com/carlosal1015/introduction2scientificpython.git
The repository will now be downloaded which may take a few minutes depending on your internet connection.
Setting up the Build Environment¶
Open a Terminal window.
Enter the
~/introduction2scientificpythonfolder which was just added by the git:Users-name:~ User$ cd introduction2scientificpython/docs Users-name:~ User$ poetry install -E docs --no-dev
Inside that folder is a file called
requirements.txtwhich contains a list of all the dependencies we need. To install these dependencies, we can use thepipcommand:Users-name:~ User$ python -m venv my-venv Users-name:~ User$ source my-venv/bin/activate Users-name:~ User$ pip install -r requirements.txt
Note
Every now and then you may want to make sure your dependencies are up to date using:
Users-name:~ User$ source my-venv/bin/activate
Users-name:~ User$ pip install -r requirements.txt --upgrade
Continue with the next step: Building.