From e33e52df75cd8298132252ae707e471fa51ea113 Mon Sep 17 00:00:00 2001 From: User Identifier Date: Mon, 19 Oct 2020 22:02:52 +0200 Subject: [PATCH] Make local setup working --- Makefile | 4 ++-- README.md | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 92cf05f..66c6f16 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,12 @@ IMG!= ls img/*.png CSSDIR:= $(PREFIX)/static/$(NAME)/css CSS!= ls css/*.css -.ifdef TEST +ifdef TEST IMGDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/img CSSDIR:= $(PREFIX)/../env/lib/python2.7/site-packages/MoinMoin/web/static/htdocs/$(NAME)/css UID!= id -u GID!= id -g -.endif +endif .PHONY: install install: diff --git a/README.md b/README.md index f0d43e7..a6b60bd 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,12 @@ Replace `/tmp/moin` with the path you want to install MoinMoin in. virtualenv -p python2 env source env/bin/activate - pip install moin + + wget http://static.moinmo.in/files/moin-1.9.10.tar.gz + tar -xvf moin-1.9.10.tar.gz + cd moin-1.9.10 + python setup.py install + cd .. mkdir wiki cp -pr env/share/moin/{data,config,underlay} wiki/ @@ -36,6 +41,8 @@ Replace `/tmp/moin` with the path you want to install MoinMoin in. sed -i "/FrontPage/s/#//g" wiki/wikiconfig.py sed -i "/superuser.*YourName/s/#//g" wiki/wikiconfig.py sed -i "/superuser.*YourName/s/YourName/admin/g" wiki/wikiconfig.py + + # Change this path with your installation folder sed -i "/wikiconfig_dir = /s/os\.path\.abspath.*/'\/tmp\/moin\/wiki\/'/g" wiki/wikiconfig.py ### Installing Acaro in the test environment