manuskript/package/prepare_osx.sh
Curtis Gedak 4b50024a32 Enhance Travis CI build on OSX to remove sudo ownership warning
The Travis CI build reports the following in the messages from
executing package/prepare_osx.sh:

    sudo pip3 install --upgrade pip setuptools wheel
    The directory '/Users/travis/Library/Caches/pip/http' or its       \
     parent directory is not owned by the current user and the cache   \
     has been disabled. Please check the permissions and owner of that \
     directory. If executing pip with sudo, you may want sudo's -H     \
     flag.
    The directory '/Users/travis/Library/Caches/pip' or its parent     \
     directory is not owned by the current user and caching wheels has \
     been disabled. check the permissions and owner of that            \
     directory. If executing pip with sudo, you may want sudo's -H     \
     flag.

In an effort to address this issue, add "-H" flag to sudo.
2018-04-07 10:24:16 -06:00

12 lines
375 B
Bash
Executable file

#!/bin/bash
set -ev
brew update
# upgrade to python 3.x
brew upgrade python
brew install enchant
sudo -H pip3 install --upgrade pip setuptools wheel
pip3 install pyinstaller PyQt5 lxml pyenchant
brew install qt hunspell
# fooling PyEnchant as described in the wiki: https://github.com/olivierkes/manuskript/wiki/Package-manuskript-for-OS-X
sudo touch /usr/local/share/aspell