Skip to content

Commit

Permalink
cleanup virtualenv install in macos builds
Browse files Browse the repository at this point in the history
  • Loading branch information
maltfield committed Mar 29, 2024
1 parent df188ab commit 4e24b35
Showing 1 changed file with 5 additions and 45 deletions.
50 changes: 5 additions & 45 deletions build/mac/buildDmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,69 +181,29 @@ cacheDir=`brew --cache`
ls -lah ${cacheDir}

# install os-level depends
#brew reinstall build/deps/wget-1.20.3_2.catalina.bottle.tar.gz
${BREW} reinstall --debug --verbose wget-1.24.5.ventura.bottle.tar.gz

${BREW} uninstall --debug --verbose --ignore-dependencies python
#brew -v reinstall build/deps/python-3.7.8.catalina.bottle.tar.gz
${BREW} reinstall --debug --verbose build/deps/python-3.12.ventura.bottle.tar.gz
${BREW} install --debug --verbose build/deps/python-3.12.ventura.bottle.tar.gz
PYTHON_PATH="`find /usr/local/Cellar/python* -type f -wholename *bin/python3.12 | sort -n | uniq | head -n1`"

${PYTHON_PATH} -m pip list
${BREW} uninstall --debug --verbose virtualenv
${BREW} reinstall --debug --verbose build/deps/python-3.12.ventura.bottle.tar.gz
${BREW} install --debug --verbose build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies --force build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${BREW} install --debug --verbose --skip-cask-deps build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${BREW} install --debug --verbose --skip-cask-deps --force build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies --skip-cask-deps build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies --skip-cask-deps --force build/deps/virtualenv-20-25.1.ventura.bottle.tar.gz
${PYTHON_PATH} -m pip list

# create python virtual environment
# * https://github.com/BusKill/buskill-app/issues/78#issuecomment-2021558890
mkdir "${VENV_PATH}"
#${PYTHON_PATH} -m virtualenv "${VENV_PATH}"
ls -lah "${VENV_PATH}"
virtualenv "${VENV_PATH}"
ls -lah "${VENV_PATH}"
PYTHON_PATH="${VENV_PATH}/bin/python"
${PYTHON_PATH} --version
${PYTHON_PATH} -m pip list

${BREW} uninstall --debug --verbose --ignore-dependencies python
#brew -v reinstall build/deps/python-3.7.8.catalina.bottle.tar.gz
${BREW} reinstall --debug --verbose build/deps/python-3.11.ventura.bottle.tar.gz
PYTHON_PATH="`find /usr/local/Cellar/python* -type f -wholename *bin/python3.11 | sort -n | uniq | head -n1`"
${BREW} install --debug --verbose build/deps/python-3.12.ventura.bottle.tar.gz

${PYTHON_PATH} -m pip list
${BREW} uninstall --debug --verbose virtualenv
${BREW} reinstall --debug --verbose build/deps/python-3.11.ventura.bottle.tar.gz
${BREW} install --debug --verbose build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies --force build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${BREW} install --debug --verbose --skip-cask-deps build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${BREW} install --debug --verbose --skip-cask-deps --force build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies --skip-cask-deps build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${BREW} install --debug --verbose --ignore-dependencies --skip-cask-deps --force build/deps/virtualenv-20-17.0.ventura.bottle.tar.gz
${PYTHON_PATH} -m pip list
get more info immediately post-python install
ls -lah /usr/local/Cellar/python/
find /usr/local/Cellar/python/ -type f -wholename *bin/python3*

# create python virtual environment
# * https://github.com/BusKill/buskill-app/issues/78#issuecomment-2021558890
mkdir "${VENV_PATH}"
#${PYTHON_PATH} -m virtualenv "${VENV_PATH}"
ls -lah "${VENV_PATH}"
virtualenv "${VENV_PATH}"
ls -lah "${VENV_PATH}"
PYTHON_PATH="${VENV_PATH}/bin/python"
${PYTHON_PATH} --version
${PYTHON_PATH} -m pip list

# get more info immediately post-python install
#ls -lah /usr/local/Cellar/python/
#find /usr/local/Cellar/python/ -type f -wholename *bin/python3*

#${BREW} reinstall build/deps/libmodplug-0.8.9.0.catalina.bottle.1.tar.gz
${BREW} reinstall --debug --verbose build/deps/libmodplug-0.8.9.0.ventura.bottle.tar.gz
#${BREW} reinstall build/deps/sdl2-2.0.12_1.catalina.bottle.tar.gz
Expand Down

0 comments on commit 4e24b35

Please sign in to comment.