Commit 1ea521c5 authored by Jason R. Coombs's avatar Jason R. Coombs Committed by GitHub

Merge pull request #2398 from pypa/extract-ppc-patch

Extract ppc patch
parents 896ef66f 72e14eae
...@@ -30,8 +30,6 @@ jobs: ...@@ -30,8 +30,6 @@ jobs:
allow_failures: allow_failures:
# suppress failures due to pypa/setuptools#2000 # suppress failures due to pypa/setuptools#2000
- python: pypy3 - python: pypy3
- arch: ppc64le
python: pypy3
- <<: *latest_py3 - <<: *latest_py3
env: TOXENV=docs env: TOXENV=docs
...@@ -39,15 +37,7 @@ jobs: ...@@ -39,15 +37,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