Skip to content

Commit

Permalink
Change python version to 3.8 and manually link SP3.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScheiklP committed Oct 20, 2023
1 parent 34096e7 commit ba8835a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.8"
- name: Download SOFA
run: |
wget https://github.com/sofa-framework/sofa/releases/download/v22.12.00/SOFA_v22.12.00_Linux.zip
Expand All @@ -37,12 +37,22 @@ jobs:
run: |
mv setup.py original_setup.py
sed '/PyOpenGL/d' original_setup.py > setup.py
mv setup.py original_setup.py
sed '/python_requires/d' original_setup.py > setup.py
mv setup.py original_setup.py
sed '/assert/d' original_setup.py > setup.py
- name: Install dependencies
run: |
export SOFA_ROOT=$(pwd)/SOFA_v22.12.00_Linux
export SOFAPYTHON3_ROOT=$SOFA_ROOT/plugins/SofaPython3
export PYTHONPATH=$SOFAPYTHON3_ROOT/lib/python3/site-packages
pip install -e .
export SOFAPYTHON3_LIBS=$SOFAPYTHON3_ROOT/lib/python3/site-packages
export PYTHON_PKG_PATH=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
ln -s $SOFAPYTHON3_LIBS/Sofa $PYTHON_PKG_PATH/Sofa
ln -s $SOFAPYTHON3_LIBS/SofaRuntime $PYTHON_PKG_PATH/SofaRuntime
ln -s $SOFAPYTHON3_LIBS/SofaTypes $PYTHON_PKG_PATH/SofaTypes
ln -s $SOFAPYTHON3_LIBS/splib $PYTHON_PKG_PATH/splib
python3 -m pip install --upgrade pip
python3 -m pip install .
- id: deployment
uses: sphinx-notes/pages@v3
with:
Expand Down
4 changes: 4 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sphinx-tabs
sphinx_rtd_theme
sphinx-autobuild
autodocsumm

0 comments on commit ba8835a

Please sign in to comment.