[Libvirt-ci] Passed: libvirt/libvirt#976 (master - c9c9fc9)

Travis CI builds at travis-ci.org
Mon Mar 5 13:59:05 UTC 2018


Build Update for libvirt/libvirt
-------------------------------------

Build: #976
Status: Passed

Duration: 28 minutes and 18 seconds
Commit: c9c9fc9 (master)
Author: Daniel P. Berrangé
Message: travis: force install of python2 into $PATH on macOS

The homebrew formula's ignored Python PEP-0394 recommendations and
changed the plain python binary in /usr/local/bin to point to Python 3
instead of Python 2. Python 2 is not even installed into a location that
is in $PATH by default anymore. The homebrew packages print a message
to stderr claiming to provide a way to fix this

[quote]
  This formula installs a python2 executable to /usr/local/opt/python at 2/bin

  If you wish to have this formula's python executable in your PATH then add

  the following to ~/.bash_profile:

    export PATH="/usr/local/opt/python at 2/libexec/bin:$PATH"
[/quote]

When trying to update $PATH are suggested we find out this message is a
lie and /usr/local/opt/python at 2 does not even exist, instead Python
seems to end up in /usr/local/Cellar/python at 2/2.7.14_1

Rather than hardcoding this version specific directory in our travis
config, we change to run "brew link --force python at 2", to make it create
symlinks in /usr/local/bin for the python2 binary.

The original change triggering this problem was

  https://github.com/Homebrew/homebrew-core/pull/24604#issue-171653084

There are countless bug reports against homebrew-core that are closed
without fixes, so it seems they are determined to ignore the Python
PEP 0394 recommendations on this.

Reviewed-by: Andrea Bolognani <abologna at redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>

View the changeset: https://github.com/libvirt/libvirt/compare/444f15adb8cd...c9c9fc90ce77

View the full build log and details: https://travis-ci.org/libvirt/libvirt/builds/349290824?utm_source=email&utm_medium=notification

--

You can configure recipients for build notifications in your .travis.yml file. See https://docs.travis-ci.com/user/notifications


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-ci/attachments/20180305/b3b3e038/attachment.htm>


More information about the Libvirt-ci mailing list