|
|
|
|
|
# 1. Installing SEMpy's modules
|
|
|
|
|
|
Please enter the following command lines:
|
|
|
|
|
|
* In the Anaconda command prompt if you are a Windows Users
|
|
|
|
|
|
* In you system bash if you are a Linux/Mac user
|
|
|
|
|
|
## 1.1 Create a folder containing SEMpy's recipe
|
|
|
|
|
|
We recommend you to have a fixed working directory:
|
|
|
```bash
|
|
|
mkdir sempy
|
|
|
cd sempy
|
|
|
```
|
|
|
Then get SEMpy's recipe
|
|
|
```bash
|
|
|
git clone https://gitlab.isae-supaero.fr/sempy/sempy-recipe.git
|
|
|
cd sempy-recipe
|
|
|
```
|
|
|
|
|
|
## 1.2 Build and install SEMpy package
|
|
|
|
|
|
Now that you entered the sempy-recipe folder, run:
|
|
|
```bash
|
|
|
conda build . -c conda-forge
|
|
|
```
|
|
|
|
|
|
Now that the package is built, you can install the Core Module on your machine.
|
|
|
|
|
|
Note: We recommand to create a new environment to intsall SEMpy, to avoid conflicts with already installed packages
|
|
|
|
|
|
Then install the Core module of SEMpy :
|
|
|
|
|
|
```bash
|
|
|
conda install --use-local sempy_core
|
|
|
```
|
|
|
|
|
|
## 1.3 Testing SEMpy
|
|
|
|
|
|
### Linux - Debian
|
|
|
|
|
|
From now, get back to your home directory, and then go to Anaconda3's packages location
|
|
|
```bash
|
|
|
cd
|
|
|
cd anaconda3/pkgs/
|
|
|
```
|
|
|
|
|
|
Look for the complete name of your package with:
|
|
|
|
|
|
```bash
|
|
|
ls
|
|
|
```
|
|
|
Then run :
|
|
|
|
|
|
```bash
|
|
|
cd <complete-package-name>/lib/python3.8/site-packages/sempy/core/
|
|
|
```
|
|
|
|
|
|
And then run the unittests
|
|
|
```bash
|
|
|
python -m unittest
|
|
|
```
|
|
|
|
|
|
### Windows
|
|
|
|
|
|
From now, get back to your home directory, and then go the SEMpy's location
|
|
|
```bash
|
|
|
cd \
|
|
|
cd Users\<your-username>\Anaconda3\pkgs\
|
|
|
```
|
|
|
|
|
|
Look for the complete name of your package with:
|
|
|
|
|
|
```bash
|
|
|
dir
|
|
|
```
|
|
|
|
|
|
Then run:
|
|
|
|
|
|
```bash
|
|
|
cd <complete-package-name>\lib\python3.8\site-packages\sempy\core\
|
|
|
```
|
|
|
|
|
|
And then run the unittests
|
|
|
```bash
|
|
|
python -m unittest
|
|
|
```
|
|
|
|
|
|
### macOS
|
|
|
|
|
|
From now, get back to your home directory, and then go the SEMpy's location
|
|
|
```bash
|
|
|
cd
|
|
|
cd opt/anaconda3/pkgs/
|
|
|
```
|
|
|
Look for the complete name of your package with:
|
|
|
|
|
|
```bash
|
|
|
ls
|
|
|
```
|
|
|
|
|
|
Then run :
|
|
|
|
|
|
```bash
|
|
|
cd <complete-package-name>/lib/python3.8/site-packages/sempy/core/
|
|
|
```
|
|
|
|
|
|
And then run the unittests
|
|
|
```bash
|
|
|
python -m unittest
|
|
|
```
|
|
|
|
|
|
If all tests succeeded, SEMpy lib core is now ready to use! |