Skip to content

Commit

Permalink
Removing termux flag
Browse files Browse the repository at this point in the history
  • Loading branch information
goFrendiAsgard committed Dec 1, 2024
1 parent 43b0bd2 commit 8db6c4f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
30 changes: 17 additions & 13 deletions project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,22 +50,26 @@ reload() {
log_info 'Loading project configuration (.env)'
source "${PROJECT_DIR}/.env"

if [ "$_IS_TERMUX" = "1" ]
then
log_info 'Updating Build Flags'
_OLD_CFLAGS="$CFLAGS"
export CFLAGS="$_OLD_CFLAGS -Wno-incompatible-function-pointer-types" # ruamel.yaml need this.
fi
# if [ "$_IS_TERMUX" = "1" ]
# then
# log_info 'Updating Build Flags'
# _OLD_CFLAGS="$CFLAGS"
# GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1
# GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
# GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
# GRPC_PYTHON_BUILD_SYSTEM_CARES=1
# CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=30 -include unistd.h" LDFLAGS+=" -llog"
# # export CFLAGS="$_OLD_CFLAGS -Wno-incompatible-function-pointer-types" # ruamel.yaml need this.
# fi

log_info 'Install'
poetry lock --no-update
poetry install -E rag
poetry check && poetry install -E rag --no-root

if [ "$_IS_TERMUX" = "1" ]
then
log_info 'Restoring Build Flags'
export CFLAGS="$_OLD_CFLAGS"
fi
# if [ "$_IS_TERMUX" = "1" ]
# then
# log_info 'Restoring Build Flags'
# export CFLAGS="$_OLD_CFLAGS"
# fi

case $(ps -p $$ | awk 'NR==2 {print $4}') in
*zsh)
Expand Down
2 changes: 2 additions & 0 deletions src/zrb/builtin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from zrb.builtin.project.create.create import create_project
from zrb.builtin.python import format_python_code
from zrb.builtin.setup.dev.asdf import setup_asdf
from zrb.builtin.setup.dev.tmux import setup_tmux
from zrb.builtin.setup.system.latex.ubuntu import setup_latex_on_ubuntu
from zrb.builtin.setup.system.ubuntu import setup_ubuntu
from zrb.builtin.shell.autocomplete.bash import make_bash_autocomplete
Expand Down Expand Up @@ -47,3 +48,4 @@
assert setup_ubuntu
assert setup_latex_on_ubuntu
assert setup_asdf
assert setup_tmux

0 comments on commit 8db6c4f

Please sign in to comment.