Skip to content

Commit

Permalink
Debugging failure
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickJadoul committed Feb 21, 2020
1 parent 4ee6028 commit 266b100
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 91 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ workflows:
version: 2
all-tests:
jobs:
- flake8
#- flake8
- osx-python3.6
- osx-python3.7
- linux-python3.6
#- linux-python3.6
2 changes: 1 addition & 1 deletion .circleci/prepare.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$PYTHON --version
$PYTHON -m pip --version
$PYTHON -m pip install -q --user --ignore-installed --upgrade "virtualenv==20.0.5"
$PYTHON -m virtualenv -p $PYTHON venv
$PYTHON -m virtualenv -vvv -p $PYTHON venv
venv/bin/python -m pip install -r requirements-dev.txt
venv/bin/python -m pip freeze
venv/bin/python --version
44 changes: 22 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
language: generic
# language: generic

matrix:
include:
# Linux Python 3
- sudo: required
language: python
python: 3.5
services: docker
env: PYTHON=python
# matrix:
# include:
# # Linux Python 3
# - sudo: required
# language: python
# python: 3.5
# services: docker
# env: PYTHON=python

# macOS Python 3
- os: osx
env: PYTHON=python3
# # macOS Python 3
# - os: osx
# env: PYTHON=python3

- os: windows
language: shell
before_install:
- choco install python3 --version 3.5.4 --no-progress -y
install:
- C:\\Python35\\python -m pip install -r requirements-dev.txt
script:
- C:\\Python35\\python ./bin/run_tests.py
# - os: windows
# language: shell
# before_install:
# - choco install python3 --version 3.5.4 --no-progress -y
# install:
# - C:\\Python35\\python -m pip install -r requirements-dev.txt
# script:
# - C:\\Python35\\python ./bin/run_tests.py

install: $PYTHON -m pip install -r requirements-dev.txt
# install: $PYTHON -m pip install -r requirements-dev.txt

script: $PYTHON ./bin/run_tests.py
# script: $PYTHON ./bin/run_tests.py
20 changes: 10 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
image:
- Ubuntu
- Visual Studio 2015
# image:
# - Ubuntu
# - Visual Studio 2015

build_script:
- cmd: "C:\\Python37\\python.exe -m pip install -r requirements-dev.txt"
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install -r requirements-dev.txt"
# the '-u' flag is required so the output is in the correct order.
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
- cmd: "C:\\Python37\\python.exe -u ./bin/run_tests.py"
- sh: "${HOME}/.localpython3.7.4/bin/python3 ./bin/run_tests.py"
# build_script:
# - cmd: "C:\\Python37\\python.exe -m pip install -r requirements-dev.txt"
# - sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install -r requirements-dev.txt"
# # the '-u' flag is required so the output is in the correct order.
# # See https://github.com/joerick/cibuildwheel/pull/24 for more info.
# - cmd: "C:\\Python37\\python.exe -u ./bin/run_tests.py"
# - sh: "${HOME}/.localpython3.7.4/bin/python3 ./bin/run_tests.py"
100 changes: 50 additions & 50 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
jobs:
- job: linux_38
pool: {vmImage: 'Ubuntu-18.04'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
- bash: |
python -m pip install -r requirements-dev.txt
python ./bin/run_tests.py
# jobs:
# - job: linux_38
# pool: {vmImage: 'Ubuntu-18.04'}
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.8'
# - bash: |
# python -m pip install -r requirements-dev.txt
# python ./bin/run_tests.py

- job: macos_35
pool: {vmImage: 'macOS-10.13'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.5'
- bash: |
python -m pip install -r requirements-dev.txt
python ./bin/run_tests.py
# - job: macos_35
# pool: {vmImage: 'macOS-10.13'}
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.5'
# - bash: |
# python -m pip install -r requirements-dev.txt
# python ./bin/run_tests.py

- job: macos_38
pool: {vmImage: 'macOS-10.13'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
- bash: |
python -m pip install -r requirements-dev.txt
python ./bin/run_tests.py
# - job: macos_38
# pool: {vmImage: 'macOS-10.13'}
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.8'
# - bash: |
# python -m pip install -r requirements-dev.txt
# python ./bin/run_tests.py

- job: windows_36
pool: {vmImage: 'vs2017-win2016'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- script: choco install vcpython27 -f -y
displayName: Install Visual C++ for Python 2.7
- bash: |
python -m pip install -r requirements-dev.txt
python ./bin/run_tests.py
# - job: windows_36
# pool: {vmImage: 'vs2017-win2016'}
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.6'
# - script: choco install vcpython27 -f -y
# displayName: Install Visual C++ for Python 2.7
# - bash: |
# python -m pip install -r requirements-dev.txt
# python ./bin/run_tests.py

- job: windows_38
pool: {vmImage: 'vs2017-win2016'}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
- script: choco install vcpython27 -f -y
displayName: Install Visual C++ for Python 2.7
- bash: |
python -m pip install -r requirements-dev.txt
python ./bin/run_tests.py
# - job: windows_38
# pool: {vmImage: 'vs2017-win2016'}
# steps:
# - task: UsePythonVersion@0
# inputs:
# versionSpec: '3.8'
# - script: choco install vcpython27 -f -y
# displayName: Install Visual C++ for Python 2.7
# - bash: |
# python -m pip install -r requirements-dev.txt
# python ./bin/run_tests.py

14 changes: 8 additions & 6 deletions cibuildwheel/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def call(args, env=None, cwd=None, shell=False):
def get_python_configurations(build_selector):
PythonConfiguration = namedtuple('PythonConfiguration', ['version', 'identifier', 'url'])
python_configurations = [
PythonConfiguration(version='2.7', identifier='cp27-macosx_x86_64', url='https://www.python.org/ftp/python/2.7.17/python-2.7.17-macosx10.9.pkg'),
PythonConfiguration(version='3.5', identifier='cp35-macosx_x86_64', url='https://www.python.org/ftp/python/3.5.4/python-3.5.4-macosx10.6.pkg'),
PythonConfiguration(version='3.6', identifier='cp36-macosx_x86_64', url='https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.9.pkg'),
PythonConfiguration(version='3.7', identifier='cp37-macosx_x86_64', url='https://www.python.org/ftp/python/3.7.6/python-3.7.6-macosx10.9.pkg'),
# PythonConfiguration(version='2.7', identifier='cp27-macosx_x86_64', url='https://www.python.org/ftp/python/2.7.17/python-2.7.17-macosx10.9.pkg'),
# PythonConfiguration(version='3.5', identifier='cp35-macosx_x86_64', url='https://www.python.org/ftp/python/3.5.4/python-3.5.4-macosx10.6.pkg'),
# PythonConfiguration(version='3.6', identifier='cp36-macosx_x86_64', url='https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.9.pkg'),
# PythonConfiguration(version='3.7', identifier='cp37-macosx_x86_64', url='https://www.python.org/ftp/python/3.7.6/python-3.7.6-macosx10.9.pkg'),
PythonConfiguration(version='3.8', identifier='cp38-macosx_x86_64', url='https://www.python.org/ftp/python/3.8.1/python-3.8.1-macosx10.9.pkg'),
PythonConfiguration(version='2.7-v7.3.0', identifier='pp27-macosx_x86_64', url='https://bitbucket.org/pypy/pypy/downloads/pypy2.7-v7.3.0-osx64.tar.bz2'),
PythonConfiguration(version='3.6-v7.3.0', identifier='pp36-macosx_x86_64', url='https://bitbucket.org/pypy/pypy/downloads/pypy3.6-v7.3.0-osx64.tar.bz2'),
Expand Down Expand Up @@ -144,8 +144,10 @@ def build(project_dir, output_dir, test_command, test_requires, test_extras, bef
exit(1)

# install pip & wheel
call(['python', get_pip_script], env=env, cwd="/tmp")
assert os.path.exists(os.path.join(installation_bin_path, 'pip'))
call(['python', get_pip_script, '-v'], env=env, cwd="/tmp")
print(env['PATH'])
call(['python', '-m', 'site'], env=env)
assert os.path.exists(os.path.join(installation_bin_path, 'pip')), os.listdir(installation_bin_path)
call(['which', 'pip'], env=env)
call(['pip', '--version'], env=env)
which_pip = subprocess.check_output(['which', 'pip'], env=env, universal_newlines=True).strip()
Expand Down

0 comments on commit 266b100

Please sign in to comment.