Skip to content

Commit

Permalink
fix: test fix with removing conf sys path add
Browse files Browse the repository at this point in the history
  • Loading branch information
yuejiaointel committed Jan 24, 2025
1 parent 0981db5 commit b28cb49
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .ci/pipeline/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ jobs:
- script: |
export DALROOT=$(dirname $(dirname $(which python)))
export NO_DIST=1
./conda-recipe/build.sh
cp ${DALROOT}/lib/python3.11/site-packages/daal4py/_daal4py.cpython*.so daal4py/
python setup.py build_ext --inplace --abs-rpath
python setup.py build --abs-rpath
# ./conda-recipe/build.sh
# cp ${DALROOT}/lib/python3.11/site-packages/daal4py/_daal4py.cpython*.so daal4py/
displayName: 'Build daal4py/sklearnex'
- script: |
export LD_LIBRARY_PATH=$(dirname $(dirname $(which python)))/lib:$LD_LIBRARY_PATH
python -c "import daal4py; print('Using daal4py from1:', daal4py.file)"
cd doc/daal4py
python -c "import daal4py; print('Using daal4py from2:', daal4py.file)"
make html 2>&1 | tee build.log
cat build.log
# check for autodoc warnings
Expand All @@ -81,7 +86,9 @@ jobs:
displayName: 'Build daal4py documentation'
- script: |
export LD_LIBRARY_PATH=$(dirname $(dirname $(which python)))/lib:$LD_LIBRARY_PATH
python -c "import daal4py; print('Using daal4py from3:', daal4py.file)"
cd doc
python -c "import daal4py; print('Using daal4py from4:', daal4py.file)"
./build-doc.sh
displayName: 'Build scikit-learn-intelex documentation'
- script: |
Expand Down
2 changes: 1 addition & 1 deletion doc/daal4py/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../.."))
# sys.path.insert(0, os.path.abspath("../.."))


# -- Project information -----------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/sources/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import os
import sys

sys.path.insert(0, os.path.abspath("../"))
# sys.path.insert(0, os.path.abspath("../"))


# -- Project information -----------------------------------------------------
Expand Down

0 comments on commit b28cb49

Please sign in to comment.