Skip to content

Commit

Permalink
Move assimp out of test directory
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf committed Sep 2, 2024
1 parent 83f17e5 commit 619fb0a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies = [
"numpy",
"OWSLib==0.28.1",
"Pillow",
"pyassimp @ file:///${PROJECT_ROOT}/test/assimp-5.4.3/port/PyAssimp",
"pyassimp @ file:///${PROJECT_ROOT}/assimp-5.4.3/port/PyAssimp",
"pycollada",
"pyproj",
"SQLAlchemy",
Expand All @@ -27,4 +27,4 @@ build-backend = "pdm.backend"
[tool.pdm]

[tool.pdm.scripts]
pre_install = "sh -c 'cd test && ./build_assimp.sh'"
pre_install = "sh -c './build_assimp.sh'"
3 changes: 2 additions & 1 deletion test/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ pip install --upgrade pip
pdm install --venv for-test

ASSIMP_VER=5.4.3
REPO_DIR=`dirname $PWD`
# NB: assimp shared library is already built as part of 'pdm install'
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/assimp-$ASSIMP_VER/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$REPO_DIR/assimp-$ASSIMP_VER/bin
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH"

# Install coverage
Expand Down
2 changes: 2 additions & 0 deletions web_build/make_boreholes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"""
This code creates GLTF files and a sqlite database
which can be used to embed NVCL boreholes in a geological model
Assumes assimp shared library was installed via pdm (see 'pyproject.toml')
"""

import sys
Expand Down

0 comments on commit 619fb0a

Please sign in to comment.