aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmirouche <amirouche.boubekki@gmail.com>2019-02-02 17:00:08 +0100
committerng0 <ng0@n0.is>2019-02-02 16:46:17 +0000
commit179d2970ab0aa8a85e51064988644814cee2d42f (patch)
treed664a5b2ef09c65bfd800476013a5b638c8ff9e8
parentfb93ba3f333b735a22cb3aba5b3cab591a40426d (diff)
downloadwww-179d2970ab0aa8a85e51064988644814cee2d42f.tar.gz
www-179d2970ab0aa8a85e51064988644814cee2d42f.zip
PYTHONPATH shenanigan
Running: git clean -fxd && make Will produce the following error: extracting messages from about.html.j2 (encoding="utf-8", lstrip_blocks="True", trim_blocks="True") Traceback (most recent call last): File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/bin/.pybabel-real", line 11, in <module> load_entry_point('Babel==2.6.0', 'console_scripts', 'pybabel')() File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/frontend.py", line 911, in main return CommandLineInterface().run(sys.argv) File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/frontend.py", line 835, in run return cmdinst.run() File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/frontend.py", line 470, in run for filename, lineno, message, comments, context in extracted: File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/extract.py", line 157, in extract_from_dir dirpath=absname, File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/extract.py", line 212, in check_and_call_extract_file strip_comment_tags=strip_comment_tags File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/extract.py", line 241, in extract_from_file strip_comment_tags)) File "/gnu/store/2dv8956ggc15s3yidadkw38v6ksi36k5-python-babel-2.6.0/lib/python3.7/site-packages/babel/messages/extract.py", line 294, in extract func = getattr(__import__(module, {}, {}, [attrname]), attrname) ModuleNotFoundError: No module named 'i18nfix' So we add current working directory aka. CWD in the pythonpath. But since guix also has changed PYTHONPATH env variable we need to suffix it. In bash that would have been simply: export PYTHONPATH=$(pwd):$PYTHONPATH
-rw-r--r--config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 6bce49ef..026cacb0 100644
--- a/config.mk
+++ b/config.mk
@@ -1,4 +1,5 @@
1#PYTHONPATH="$PYTHONPATH:$(pwd)" 1GUIX_PYTHONPATH:=$(PYTHONPATH)
2PYTHONPATH=$(PWD):$(GUIX_PYTHONPATH)
2 3
3DEBUG=0 4DEBUG=0
4 5