From 4b50024a3276e9bef3e490ac9c4fe0318d196039 Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Fri, 6 Apr 2018 11:15:45 -0600 Subject: [PATCH] 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. --- package/prepare_osx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/prepare_osx.sh b/package/prepare_osx.sh index ffb1c8c..5f9620e 100755 --- a/package/prepare_osx.sh +++ b/package/prepare_osx.sh @@ -4,7 +4,7 @@ brew update # upgrade to python 3.x brew upgrade python brew install enchant -sudo pip3 install --upgrade pip setuptools wheel +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