Skip to content

Commit 1c35b41

Browse files
committed
README update for cppyy build isolation
1 parent 57d09bd commit 1c35b41

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ Regardless of whether you are building CppInterOP with Cling or Clang-REPL you w
217217
export CB_PYTHON_DIR="$PWD/cppyy-backend/python"
218218
export CPPINTEROP_DIR="$CB_PYTHON_DIR/cppyy_backend"
219219
export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:${LLVM_DIR}/llvm/include:${LLVM_DIR}/clang/include:${LLVM_DIR}/build/include:${LLVM_DIR}/build/tools/clang/include"
220-
export PYTHONPATH=$PYTHONPATH:$CPYCPPYY_DIR:$CB_PYTHON_DIR
221220
```
222221
If on MacOS you will also need the following environment variable defined
223222
```
@@ -228,7 +227,6 @@ On Windows you define as follows (assumes you have defined $env:PWD_DIR= $PWD.Pa
228227
$env:CB_PYTHON_DIR="$env:PWD_DIR\cppyy-backend\python"
229228
$env:CPPINTEROP_DIR="$env:CB_PYTHON_DIR\cppyy_backend"
230229
$env:CPLUS_INCLUDE_PATH="$env:CPLUS_INCLUDE_PATH;$env:LLVM_DIR\llvm\include;$env:LLVM_DIR\clang\include;$env:LLVM_DIR\build\include;$env:LLVM_DIR\build\tools\clang\include"
231-
$env:PYTHONPATH="$env:PYTHONPATH;$env:CPYCPPYY_DIR;$env:CB_PYTHON_DIR"
232230
```
233231

234232
#### Build CppInterOp
@@ -329,13 +327,22 @@ Note down the path to the `build` directory as `CPYCPPYY_DIR`:
329327
export CPYCPPYY_DIR=$PWD
330328
cd ../..
331329
```
330+
Export the `libcppyy` path to python:
331+
332+
```
333+
export PYTHONPATH=$PYTHONPATH:$CPYCPPYY_DIR:$CB_PYTHON_DIR
334+
```
335+
and on Windows:
336+
```
337+
$env:PYTHONPATH="$env:PYTHONPATH;$env:CPYCPPYY_DIR;$env:CB_PYTHON_DIR"
338+
```
332339

333340
#### Install cppyy
334341

335342
```
336343
git clone --depth=1 https://github.com/compiler-research/cppyy.git
337344
cd cppyy
338-
python -m pip install --upgrade . --no-deps
345+
python -m pip install --upgrade . --no-deps --no-build-isolation
339346
cd ..
340347
```
341348

0 commit comments

Comments
 (0)