Skip to content

Commit

Permalink
Change docker setup file for notodev.
Browse files Browse the repository at this point in the history
In order to use noto-emoji python code from outside the project, I
want to put it on the python path (access will be inconvenient since
it's unfortunately named).  Since you can't change the callers ENV in
a subshell I'm changing the script that gets generated to be sourced
instead.
  • Loading branch information
dougfelt committed Aug 23, 2018
1 parent 010ba2e commit 0164a78
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions nototools/docker/devnoto/notodevsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ chmod a+r /usr/local/share/noto/config

# crate a script to setup nototools and install it, this has to be run in
# an active container that has mapped noto.
cat << EOF >> /usr/local/share/noto/setup_nototools.sh

# In order to access noto-emoji tools from a different location, we
# need to put it on the path. The naming is a problem. We assume here
# that we're in control of the environment so write the PYTHONPATH
# directly.
cat << EOF >> /usr/local/share/noto/setup_nototools
# source this file
pushd /app/noto/nototools
pip install -r requirements.txt
python setup.py develop
popd
export PYTHONPATH=/app/noto/noto-emoji
EOF
chmod a+x /usr/local/share/noto/setup_nototools.sh

# we use 7za when we generate zips for the website data.
#
Expand Down

0 comments on commit 0164a78

Please sign in to comment.