Skip to content
Snippets Groups Projects
Verified Commit 7356bbeb authored by Giordon Holtsberg Stark's avatar Giordon Holtsberg Stark
Browse files

update readme/gitlab-ci

parent 1282e3aa
No related branches found
No related tags found
No related merge requests found
Pipeline #1749425 failed
......@@ -40,7 +40,7 @@ build-bare-python:
- cd build
- cmake3 -DUSE_PYTHON=on ..
- make
- PYTHONPATH=lib:$PYTHONPATH python3 -c "import labRemote"
- PYTHONPATH=lib:$PYTHONPATH python3 -c "import _labRemote as labRemote"
- PYTHONPATH=lib:$PYTHONPATH python3 -c "import labRemote; testPS = labRemote.ps.AgilentPs('testPS'); testChannel = labRemote.ps.PowerSupplyChannel('testChannel', testPS, 123)"
build:
......
......@@ -43,14 +43,14 @@ Requirements for JSON (used by libPS and libEquipConf):
# Python Bindings
Python bindings are built via the `labRemote` target which is enabled by the cmake flag `-DUSE_PYTHON=on`. This will put a `.so` file in `${BUILD}/lib/` that can be directly used in python. As such, it requires the Python libraries to be findable (e.g. `python3-devel` is installed). For example, after building with `make`, while inside the build directory,
Python bindings are built via the `_labRemote` target which is enabled by the cmake flag `-DUSE_PYTHON=on`. This will put a `.so` file in `${BUILD}/lib/` that can be directly used in python. As such, it requires the Python libraries to be findable (e.g. `python3-devel` is installed). For example, after building with `make`, while inside the build directory,
```
PYTHONPATH=lib/:$PYTHONPATH python3
Python 3.6.8 (default, Aug 7 2019, 17:28:10)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import labRemote
>>> import _labRemote
```
For now, the following classes are supported:
......@@ -89,5 +89,5 @@ yum install python3-devel
cmake3 -DUSE_PYTHON=on
make
export PYTHONPATH=/home/<username>/<directoryToLabRemote>/build/lib:$PYTHONPATH
python3 -c "import labRemote"
python3 -c "import _labRemote as labRemote"
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment