Skip to content

Commit

Permalink
This command is needed on Apple M2 machines
Browse files Browse the repository at this point in the history
It is not clear why. Perhaps an error in the ARM64 package, and thus doesn't
show else where.

This change fixes the problem for Hans on a M2 machine. (Apple intel is working
fine without it, and so is Linux as we know from the CI.)
  • Loading branch information
fangohr committed Dec 20, 2024
1 parent 08c807c commit 1e8e697
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions create.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash


# paths to emmocheck and ontodoc (from https://github.com/emmo-repo/EMMOntoPy)
CHECK=emmocheck

Expand All @@ -14,6 +15,10 @@ ls -ls magnetic_material_mammos.ttl
echo "checking ontology ..."
$CHECK magnetic_material_mammos.ttl


# on ARM Mac, this seems required once to build documentation
doc -c

echo "building documentation ..."
cd doc
python ./mammosdoc --template=mammos.md --local --format=html ../magnetic_material_mammos.ttl magnetic_material_mammos.html
Expand Down
3 changes: 2 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ version = "0.1.0"
[tasks]
build = "python src/build_onto.py"
check = "emmocheck magnetic_material_mammos.ttl"
docs = {cmd = "python mammosdoc --template=mammos.md --local --format=html ../magnetic_material_mammos.ttl magnetic_material_mammos.html", cwd = "doc"}
init_dot = "dot -c" # needed on Mac M2 before graphviz can be used
docs = {cmd = "python mammosdoc --template=mammos.md --local --format=html ../magnetic_material_mammos.ttl magnetic_material_mammos.html", cwd = "doc", depends_on = ['init_dot']}
clean = "rm -f demo.sqlite3 magnetic_material_mammos.ttl doc/magnetic_material_mammos.html"

# convenience target: run all steps subsequently
Expand Down

0 comments on commit 1e8e697

Please sign in to comment.