Skip to content
sdk-installation.md 1.14 KiB
Newer Older
Daniel García's avatar
Daniel García committed

# OpenCAPIF SDK installation
Daniel García's avatar
Daniel García committed

## OpenCAPIF SDK consumer installation

SOON

## OpenCAPIF SDK development environment installation
Daniel García's avatar
Daniel García committed
Follow next steps to perform OpenCAPIF SDK installation:

1 - Create an enviroment with pyenv

```console
#Commands to install the Python environment
pyenv install 3.12
pyenv virtualenv 3.12 pesp_sdk_env
#Activate your enviroment
source your/path/to/.pyenv/versions/pesp_sdk_env/bin/activate
```

OPTIONAL step: sometimes Apple Mac shells raise issues while finding the shell path. If this happens, try this command:

```console
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
```
        
2 - Clone GitHub repository:

```console
git clone -b sdk_v0.1 --single-branch https://github.com/Telefonica/pesp_capif_sdk.git
```

```console
#Then move to the pesp_capif_sdk folder

cd /your/path/to/pesp_capif_sdk
```

3 - Install the Python requirements listed in requirements.txt file:

```console
cd installation

python -m pip install --upgrade pip

pip install -r requirements.txt
```

**Congratulations!** You have finalized the installation of OpenCAPIF SDK.