Skip to content

Commit

Permalink
Rewrite Makefile: do not include mod-wsgi-standalone package in defau…
Browse files Browse the repository at this point in the history
…lt installation
  • Loading branch information
p3k committed Feb 10, 2024
1 parent 759b0c1 commit 0fa978c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
26 changes: 17 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,29 @@
objects = main.py roxy.py ferris.py wsgi.py
objects = entrecote.py ferris.py main.py roxy.py wsgi.py

.PHONY: install server wsgi config clean
.PHONY: clean full-install install server wsgi wsgi-config wsgi-server

install: requirements.txt
python3 -m venv .venv
. .venv/bin/activate
.venv/bin/pip install --requirement requirements.txt
.entrecote:
mkdir -p .entrecote

.venv:
python3 -m venv .venv

install: .entrecote .venv requirements.txt
.venv/bin/pip install `grep --invert-match mod-wsgi-standalone requirements.txt`

server: .venv/bin/python3 $(objects)
.venv/bin/python3 main.py

wsgi: .venv/bin/mod_wsgi-express $(objects)
wsgi: install requirements.txt
.venv/bin/pip install `grep mod-wsgi-standalone requirements.txt`

wsgi-server: .venv/bin/mod_wsgi-express $(objects)
.venv/bin/mod_wsgi-express start-server wsgi.py

config: .venv/bin/mod_wsgi-express
wsgi-config: .venv/bin/mod_wsgi-express
.venv/bin/mod_wsgi-express module-config

clean: requirements.txt
.venv/bin/pip uninstall --requirement requirements.txt
.venv/bin/pip uninstall --requirement requirements.txt \
rm -r .venv \
rm -r .entrecote
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $ python -m venv /path/to/.venv/json3k
$ source /path/to/.venv/json3k/bin/activate
$ make && make server
# — or —
$ make && make wsgi
$ make wgsi && make wsgi-server
```

> 💡 [Integration with Google AppEngine](https://github.com/p3k/json3k/tree/gae) is no longer supported.
Expand Down

0 comments on commit 0fa978c

Please sign in to comment.