Skip to content

Commit

Permalink
Fix virtualenv to use Python3.11 and rename py3 to .venv
Browse files Browse the repository at this point in the history
  • Loading branch information
ale-rt committed Nov 6, 2024
1 parent c854981 commit cc2da7a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
.PHONY: all
all: .installed.cfg

py3/bin/buildout: py3/bin/pip3 requirements.txt $(wildcard config/*.txt)
.venv/bin/buildout: .venv/bin/pip3 requirements.txt $(wildcard config/*.txt)
# To really be sure we have the desired setuptools we need to uninstall it first
./py3/bin/pip3 uninstall -y setuptools
./.venv/bin/pip3 uninstall -y setuptools
# ... and reinstall it later
./py3/bin/pip3 install -IUr config/requirements-venv.txt -c config/constraints.txt
./py3/bin/pip3 install -IUr requirements.txt
./py3/bin/pip list | grep "plone.recipe.zope2instance.*6.12.2$$" && ./py3/bin/pip3 install plone.recipe.zope2instance==6.13.0
./.venv/bin/pip3 install -IUr config/requirements-venv.txt -c config/constraints.txt
./.venv/bin/pip3 install -IUr requirements.txt
./.venv/bin/pip list | grep "plone.recipe.zope2instance.*6.12.2$$" && ./.venv/bin/pip3 install plone.recipe.zope2instance==6.13.0

py3/bin/pip3:
python3 -m venv py3
.venv/bin/pip3:
python3.11 -m venv .venv

.installed.cfg: py3/bin/buildout $(wildcard *.cfg config/*.cfg profiles/*.cfg)
./py3/bin/buildout
.installed.cfg: .venv/bin/buildout $(wildcard *.cfg config/*.cfg profiles/*.cfg)
./.venv/bin/buildout

.PHONY: upgrade
upgrade:
./bin/upgrade plone_upgrade -A && ./bin/upgrade install -Ap

.PHONY: clean
clean:
rm -rf ./py3
rm -rf ./.venv

.PHONY: read_registry
read_registry: .installed.cfg
Expand Down

0 comments on commit cc2da7a

Please sign in to comment.