Skip to content

Commit

Permalink
Pin build to Python 3.10
Browse files Browse the repository at this point in the history
Also make it possible to override it using the PYTHON make variable:

    $ make PYTHON="$HOME/bin/python3.10"

Fixes hpyproject#45
  • Loading branch information
erlend-aasland committed Mar 20, 2024
1 parent 6ec5cc6 commit 301bdb5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Expand Up @@ -2,15 +2,16 @@ SHELL := bash
TARGET ?= origin
# hpy static page and blog makefile
# type `make help` to see all options
PYTHON := python3.10

all: build

.PHONY: clean build help


venv_nikola/bin/nikola: ## create a virtualenv to build the website
@virtualenv -ppython3 ./venv_nikola
@venv_nikola/bin/python -mpip install nikola==8.2.2 markdown==3.2.2 jinja2 aiohttp watchdog ruamel.yaml feedparser
@virtualenv -p $(PYTHON) ./venv_nikola
@venv_nikola/bin/python -m pip install -r requirements.txt
@venv_nikola/bin/nikola plugin -i sidebar
@venv_nikola/bin/nikola plugin -i localsearch

Expand Down
7 changes: 7 additions & 0 deletions requirements.txt
@@ -0,0 +1,7 @@
aiohttp
feedparser
jinja2
markdown==3.2.2
nikola==8.2.2
ruamel.yaml
watchdog

0 comments on commit 301bdb5

Please sign in to comment.