File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,6 @@ Regardless of whether you are building CppInterOP with Cling or Clang-REPL you w
217217export CB_PYTHON_DIR="$PWD/cppyy-backend/python" 
218218export CPPINTEROP_DIR="$CB_PYTHON_DIR/cppyy_backend" 
219219export 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``` 
222221If 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`:
329327export CPYCPPYY_DIR=$PWD 
330328cd ../.. 
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``` 
336343git clone --depth=1 https://github.com/compiler-research/cppyy.git 
337344cd cppyy 
338- python -m pip install --upgrade . --no-deps 
345+ python -m pip install --upgrade . --no-deps --no-build-isolation  
339346cd .. 
340347``` 
341348
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments