Commit d8b54614 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract PPC64LE into script and port to Python.

parent 896ef66f
...@@ -39,15 +39,7 @@ jobs: ...@@ -39,15 +39,7 @@ jobs:
cache: pip cache: pip
before_install: before_install:
- | - python tools/ppc64le-patch.py
# Except on bionic, Travis Linux base image for PPC64LE
# platform lacks the proper
# permissions to the directory ~/.cache/pip/wheels that allow
# the user running travis build to install pip packages.
# TODO: is someone tracking this issue? Maybe just move to bionic?
if [[ "$TRAVIS_CPU_ARCH" == "ppc64le" ]]; then
sudo chown -Rfv $USER:$GROUP ~/.cache/pip/wheels
fi
install: install:
......
"""
Except on bionic, Travis Linux base image for PPC64LE
platform lacks the proper
permissions to the directory ~/.cache/pip/wheels that allow
the user running travis build to install pip packages.
TODO: is someone tracking this issue? Maybe just move to bionic?
"""
import subprocess
import collections
import os
def patch():
env = collections.defaultdict(str, os.environ)
if env['TRAVIS_CPU_ARCH'] != 'ppc64le':
return
cmd = [
'sudo',
'chown',
'-Rfv',
'{USER}:{GROUP}'.format_map(env),
os.path.expanduser('~/.cache/pip/wheels'),
]
subprocess.Popen(cmd)
__name__ == '__main__' and patch()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment