Skip to content

Commit

Permalink
Build script
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetanserre committed Jul 12, 2024
1 parent 6c67f56 commit 1777fc6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
build-x86-macos:
runs-on: macos-latest
needs: build-x86-linux
needs: build-arm-linux
steps:
- uses: actions/checkout@v4

Expand Down
5 changes: 4 additions & 1 deletion build_and_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Red="\033[0;31m"
Green="\033[0;92m"
NC="\033[0m"

platform=$(python -c "import platform; print(platform.processor())")
echo -e "${Purple}Running on ${platform} platform${NC}"

unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) lib_ext=so; lib_path=LD_LIBRARY_PATH;;
Expand Down Expand Up @@ -38,4 +41,4 @@ else
echo -e "${Red}pyGKLS is not working correctly!${NC}"
echo -e "${Red}Please make sure that $HOME/.local/lib is in ${lib_path}!${NC}"
exit 1
fi
fi
2 changes: 1 addition & 1 deletion pygkls/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os

# Get the include path for the python3 interpreter
python_include = os.popen("python3 -m pybind11 --includes").read().strip()
python_include = os.popen("python -m pybind11 --includes").read().strip()

# check if macos
lib_name = "libpygkls.so"
Expand Down

0 comments on commit 1777fc6

Please sign in to comment.