Skip to content

Commit

Permalink
[build] Fix some problems with sequitur installation (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtrmal authored and danpovey committed Apr 4, 2018
1 parent 7436ed6 commit a9e4f74
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions tools/extras/install_sequitur.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,19 @@ fi
# the next two lines deal with the issue that the new setup tools
# expect the directory in which we will be installing to be visible
# as module directory to python
site_packages_dir=$(python -m site --user-site | grep -oE "lib.*")
site_packages_dir=$(PYTHONPATH="" python -m site --user-site | grep -oE "lib.*")
SEQUITUR=$(pwd)/$site_packages_dir
# some bits of info to troubleshoot this in case people have problems
echo -n >&2 "USER SITE: "; PYTHONPATH="" python -m site --user-site
echo >&2 "SEQUITUR_PACKAGE: ${site_packages_dir:-}"
echo >&2 "SEQUITUR: $SEQUITUR"
echo >&2 "PYTHONPATH: ${PYTHONPATH:-}"
mkdir -p $SEQUITUR
PYTHONPATH=${PYTHONPATH:-}:$SEQUITUR python setup.py install --prefix `pwd`
)
) || {
echo >&2 "Problem installing sequitur!"
exit 1
}

site_packages_dir=$(cd sequitur-g2p; find ./lib{,64} -type d -name site-packages | head -n 1)
(
Expand Down

0 comments on commit a9e4f74

Please sign in to comment.