Skip to content

Commit

Permalink
make:all:fixed:tested on macos:13.5 (22G74)
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Jun 17, 2024
1 parent dc34937 commit bc8f5ca
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 22 deletions.
13 changes: 7 additions & 6 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,10 @@ all: initialize init install prune-cluster## all

.PHONY: venv
venv:## create python3 virtualenv .venv
test -d .venv || $(PYTHON3) -m virtualenv .venv
test -d .venv || python3 -m virtualenv .venv || pipx install virtualenv && virtualenv .venv
( \
source .venv/bin/activate; pip install -q -r requirements.txt; \
python3 -m pip install -q omegaconf \
source .venv/bin/activate; pip install -q -r requirements.txt --break-system-package; \
pip install -q omegaconf --break-system-package \
pip install -q --upgrade pip; \
);
@echo "To activate (venv)"
Expand Down Expand Up @@ -432,10 +432,11 @@ endif
@install -v -m=o+rwx $(PWD)/getcoins.py /usr/local/bin/play-getcoins

#$(PYTHON3) -m pip install -q --upgrade pip 2>/dev/null
$(PYTHON3) -m pip install -q omegaconf 2>/dev/null
$(PYTHON3) -m pip install -q -r requirements.txt 2>/dev/null
$(PYTHON3) -m pip install -q omegaconf 2>/dev/null || $(MAKE) venv
$(PYTHON3) -m pip install -q -r requirements.txt 2>/dev/null || true
# pushd docs 2>/dev/null && $(PYTHON3) -m pip install -q -r requirements.txt && popd 2>/dev/null
$(PYTHON3) plebnet_generate.py TRIPLET=$(TRIPLET) services=$(SERVICES)
source .venv/bin/activate; $(PYTHON3) plebnet_generate.py TRIPLET=$(TRIPLET) services=$(SERVICES) || \
pip3 install omegaconf --break-system-packages

#pushd scripts 2>/dev/null; for string in *; do sudo chmod -R o+rwx /usr/local/bin/$$string; done; popd 2>/dev/null || echo

Expand Down
2 changes: 2 additions & 0 deletions pip.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
user = true
break-system-packages = true
32 changes: 16 additions & 16 deletions scripts/initialize
Original file line number Diff line number Diff line change
Expand Up @@ -71,37 +71,36 @@ if hash brew 2>/dev/null; then
if ! hash gawk 2>/dev/null; then
brew install gawk
fi
if ! hash pipx 2>/dev/null; then
brew install pipx
fi
#brew install python@3.8
if ! hash docker 2>/dev/null; then
rm -rf /usr/local/share/zsh/site-functions/_docker && \
rm -rf /usr/local/share/fish/vendor_completions.d/docker.fish && \
rm -rf /usr/local/etc/bash_completion.d/docker

brew install --cask docker
brew install docker
brew link docker
brew install --cask docker || true
brew install docker || true
brew link docker || true
fi
if ! hash docker-compose 2>/dev/null; then
brew install docker-compose
brew install docker-compose || true
fi
if ! hash mkdocs 2>/dev/null; then
brew install mkdocs
fi
if ! hash jq 2>/dev/null; then
brew install jq
fi
brew install --quiet --force python@3.9
curl -O https://bootstrap.pypa.io/get-pip.py
sudo -H python3 get-pip.py --no-warn-script-location

if [ -f "/usr/local/opt/python@3.9/bin/python3" ] && [ -f "/opt/homebrew/opt/python@3.9/bin/python3" ]; then
python39=/opt/homebrew/opt/python@3.9/bin/python3
else
python39=$(which python3)
fi
export python39
$python39 -m pip -q install --upgrade pip
$python39 -m pip -q install omegaconf
#brew install --quiet --force python@3
##curl -O https://bootstrap.pypa.io/get-pip.py
##sudo -H python3 get-pip.py --no-warn-script-location

python3=$(which python3)
export python3
pipx ensurepath && \
pipx install omegaconf --include-deps --force #|| $(which python3) -m pip -q install --upgrade pip && $(which python3) -m pip -q install omegaconf ||
echo
else
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Expand Down Expand Up @@ -167,6 +166,7 @@ if [[ "$OSTYPE" == "linux"* ]]; then
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
checkbrew
echo
elif [[ "$OSTYPE" == "cygwin" ]]; then
echo TODO add support for $OSTYPE
elif [[ "$OSTYPE" == "msys" ]]; then
Expand Down

0 comments on commit bc8f5ca

Please sign in to comment.