2023-05-25 11:42:19 +01:00
|
|
|
# PrimAITE
|
2023-06-20 11:19:05 +01:00
|
|
|
|
|
|
|
|
## Getting Started with PrimAITE
|
|
|
|
|
|
2023-07-26 19:49:24 +01:00
|
|
|
|
2023-06-20 11:19:05 +01:00
|
|
|
### Pre-Requisites
|
|
|
|
|
|
|
|
|
|
In order to get **PrimAITE** installed, you will need to have the following installed:
|
|
|
|
|
|
|
|
|
|
- `python3.8+`
|
|
|
|
|
- `python3-pip`
|
|
|
|
|
- `virtualenv`
|
|
|
|
|
|
|
|
|
|
**PrimAITE** is designed to be OS-agnostic, and thus should work on most variations/distros of Linux, Windows, and MacOS.
|
|
|
|
|
|
2023-07-26 19:49:24 +01:00
|
|
|
### Installation from source (Developer Install)
|
|
|
|
|
#### 1. Create a new python virtual environment (venv)
|
2023-06-20 11:19:05 +01:00
|
|
|
|
|
|
|
|
```unix
|
2023-07-26 19:49:24 +01:00
|
|
|
python3 -m venv venv
|
2023-06-20 11:19:05 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
#### 2. Activate the venv
|
|
|
|
|
|
|
|
|
|
##### Unix
|
|
|
|
|
```bash
|
2023-07-26 19:49:24 +01:00
|
|
|
source venv/bin/activate
|
2023-06-20 11:19:05 +01:00
|
|
|
```
|
|
|
|
|
|
2023-07-26 19:49:24 +01:00
|
|
|
##### Windows (Powershell)
|
2023-06-20 11:19:05 +01:00
|
|
|
```powershell
|
2023-07-26 19:49:24 +01:00
|
|
|
.\venv\Scripts\activate
|
2023-06-20 11:19:05 +01:00
|
|
|
```
|
|
|
|
|
|
2023-07-26 19:49:24 +01:00
|
|
|
#### 3. Install `primaite` with the dev extra into the venv along with all of it's dependencies
|
2023-06-20 11:19:05 +01:00
|
|
|
|
|
|
|
|
```bash
|
2023-07-26 19:49:24 +01:00
|
|
|
python3 -m pip install -e .[dev]
|
2023-06-20 11:19:05 +01:00
|
|
|
```
|
|
|
|
|
|
2023-07-26 19:49:24 +01:00
|
|
|
#### 4. Perform the PrimAITE setup:
|
2023-06-20 11:19:05 +01:00
|
|
|
|
|
|
|
|
```bash
|
2023-07-26 19:49:24 +01:00
|
|
|
primaite setup
|
2023-06-20 11:22:29 +01:00
|
|
|
```
|
2023-06-20 11:19:05 +01:00
|
|
|
|
|
|
|
|
## Building documentation
|
|
|
|
|
The PrimAITE documentation can be built with the following commands:
|
|
|
|
|
|
|
|
|
|
##### Unix
|
|
|
|
|
```bash
|
|
|
|
|
cd docs
|
|
|
|
|
make html
|
|
|
|
|
```
|
|
|
|
|
|
2023-07-26 19:49:24 +01:00
|
|
|
##### Windows (Powershell)
|
2023-06-20 11:19:05 +01:00
|
|
|
```powershell
|
|
|
|
|
cd docs
|
|
|
|
|
.\make.bat html
|
|
|
|
|
```
|