[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 6/6] travis: install homebrew python for OS X
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v1 6/6] travis: install homebrew python for OS X |
Date: |
Wed, 8 Jan 2020 11:48:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
On 1/8/20 8:00 AM, Alex Bennée wrote:
Philippe Mathieu-Daudé <address@hidden> writes:
On 1/7/20 2:53 PM, Alex Bennée wrote:
Our python3 requirements now outstrip those of the build.
Signed-off-by: Alex Bennée <address@hidden>
---
.travis.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.travis.yml b/.travis.yml
index 848a2714efe..a86ca34f79d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -57,6 +57,7 @@ addons:
- glib
- pixman
- gnu-sed
+ - python
update: true
This doesn't seem enough, I'm getting:
./configure --disable-docs --disable-tools
ERROR: Cannot use '/usr/local/bin/python', Python >= 3.5 is required.
Use --python=/path/to/python to specify a supported Python.
Apparently we don't set this in PATH ourselves.
It looks like brew fell over:
==> Downloading
https://homebrew.bintray.com/bottles/python-3.7.6_1.mojave.bottl
==> Downloading from
https://akamai.bintray.com/64/643d627c2b4fc03a3286c397d2992
########################################################################
100.0%
==> Pouring python-3.7.6_1.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink Frameworks/Python.framework/Headers
Target /usr/local/Frameworks/Python.framework/Headers
is a symlink belonging to python@2. You can unlink it:
brew unlink python@2
To force the link and overwrite all conflicting files:
brew link --overwrite python
To list all files that would be deleted:
brew link --overwrite --dry-run python
Possible conflicting files are:
/usr/local/Frameworks/Python.framework/Headers ->
/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Headers
/usr/local/Frameworks/Python.framework/Python ->
/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Python
/usr/local/Frameworks/Python.framework/Resources ->
/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Resources
/usr/local/Frameworks/Python.framework/Versions/Current ->
/usr/local/Cellar/python@2/2.7.17/Frameworks/Python.framework/Versions/Current
==> /usr/local/Cellar/python/3.7.6_1/bin/python3 -s setup.py --no-user-cfg
insta
==> /usr/local/Cellar/python/3.7.6_1/bin/python3 -s setup.py --no-user-cfg
insta
==> /usr/local/Cellar/python/3.7.6_1/bin/python3 -s setup.py --no-user-cfg
insta
==> Caveats
Python has been installed as
/usr/local/bin/python3
Based on this I tried:
-- >8 --
before_script:
- - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then export
PATH="/usr/local/opt/ccache/libexec:$PATH" ; fi
+ - if [ "$TRAVIS_OS_NAME" == "osx" ] ; then export
PATH="/usr/local/opt/ccache/libexec:$PATH" BASE_CONFIG="$BASE_CONFIG
--python=/usr/local/bin/python3"; fi
- if command -v ccache ; then ccache --zero-stats ; fi
- mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR}
- ${SRC_DIR}/configure ${BASE_CONFIG} ${CONFIG} || { cat config.log
&& exit 1; }
---
Still:
../configure: line 1845: /usr/local/bin/python3: No such file or directory
ERROR: Cannot use '/usr/local/bin/python3', Python >= 3.5 is required.
Use --python=/path/to/python to specify a supported Python.
Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed
into
/usr/local/opt/python/libexec/bin
If you need Homebrew's Python 2.7 run
brew install python@2
You can install Python packages with
pip3 install <package>
They will install into the site-package directory
/usr/local/lib/python3.7/site-packages
See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺 /usr/local/Cellar/python/3.7.6_1: 3,977 files, 60.8MB
- [PATCH v1 0/6] current testing/next (python and other fixes), Alex Bennée, 2020/01/07
- [PATCH v1 1/6] hw/i386/x86-iommu: Add missing stubs, Alex Bennée, 2020/01/07
- [PATCH v1 2/6] tests/vm: update openbsd to release 6.6, Alex Bennée, 2020/01/07
- [PATCH v1 4/6] travis.yml: avocado: Print logs of non-pass tests only, Alex Bennée, 2020/01/07
- [PATCH v1 3/6] freebsd: use python37, Alex Bennée, 2020/01/07
- [PATCH v1 6/6] travis: install homebrew python for OS X, Alex Bennée, 2020/01/07
- [PATCH v1 5/6] travis.yml: Detach build and test steps, Alex Bennée, 2020/01/07