diff options
author | Amirouche <amirouche.boubekki@gmail.com> | 2019-02-02 17:00:08 +0100 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-02-02 16:46:17 +0000 |
commit | 179d2970ab0aa8a85e51064988644814cee2d42f (patch) | |
tree | d664a5b2ef09c65bfd800476013a5b638c8ff9e8 | |
parent | fb93ba3f333b735a22cb3aba5b3cab591a40426d (diff) |
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.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,5 @@ -#PYTHONPATH="$PYTHONPATH:$(pwd)" +GUIX_PYTHONPATH:=$(PYTHONPATH) +PYTHONPATH=$(PWD):$(GUIX_PYTHONPATH) DEBUG=0 |