GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — TST: work around pyodide and ninja · numpy/numpy@b4e0713

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/workflows
    • build_test.yml
    • wheels.yml
  • azure-pipelines.yml
  • azure-steps-windows.yml
  • pyproject.toml
  • tools
    • travis-test.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/workflows/build_test.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/build_test.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
# for add-apt-repository
9797
sudo apt install software-properties-common -y
9898
sudo add-apt-repository ppa:deadsnakes/ppa -y
99-
sudo apt install python3.9-dev -y
99+
sudo apt install python3.9-dev ninja -y
100100
sudo ln -s /usr/bin/python3.9 /usr/bin/pythonx
101101
pythonx -m pip install --upgrade pip setuptools wheel
102102
pythonx -m pip install -r test_requirements.txt
Collapse file

‎.github/workflows/wheels.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/wheels.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ jobs:
192192
# TODO: Don't run test suite, and instead build wheels from sdist
193193
# Depends on pypa/cibuildwheel#1020
194194
python -m pip install dist/*.gz
195+
pip install ninja
195196
pip install -r test_requirements.txt
196197
cd .. # Can't import numpy within numpy src directory
197198
python -c "import numpy, sys; print(numpy.__version__); sys.exit(numpy.test() is False)"
Collapse file

‎azure-pipelines.yml‎

Copy file name to clipboardExpand all lines: azure-pipelines.yml
+2-37Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -32,42 +32,6 @@ stages:
3232
- bash: echo "##vso[task.setvariable variable=start_main;isOutput=true]$RET"
3333
name: result
3434

35-
- stage: InitialTests
36-
condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
37-
dependsOn: Check
38-
jobs:
39-
40-
# Native build is based on gcc flag `-march=native`
41-
- job: Linux_baseline_native
42-
pool:
43-
vmImage: 'ubuntu-20.04'
44-
steps:
45-
- script: |
46-
git submodule update --init
47-
displayName: 'Fetch submodules'
48-
- script: |
49-
if ! `gcc 2>/dev/null`; then
50-
sudo apt install gcc
51-
fi
52-
sudo add-apt-repository ppa:deadsnakes/ppa -y
53-
sudo apt install python3.9
54-
sudo apt install python3.9-dev
55-
sudo apt install python3.9-distutils
56-
# python3 has no setuptools, so install one to get us going
57-
python3.9 -m pip install --user --upgrade pip 'setuptools<49.2.0'
58-
python3.9 -m pip install --user -r test_requirements.txt
59-
displayName: 'install python/requirements'
60-
- script: |
61-
python3.9 runtests.py --show-build-log --cpu-baseline=native --cpu-dispatch=none \
62-
--debug-info --mode=full -- -rsx --junitxml=junit/test-results.xml
63-
displayName: 'Run native baseline Build / Tests'
64-
- task: PublishTestResults@2
65-
condition: succeededOrFailed()
66-
inputs:
67-
testResultsFiles: '**/test-*.xml'
68-
failTaskOnFailedTests: true
69-
testRunTitle: 'Publish test results for baseline/native'
70-
7135
- stage: ComprehensiveTests
7236
condition: and(succeeded(), eq(dependencies.Check.outputs['Skip.result.start_main'], 'true'))
7337
dependsOn: Check
@@ -105,6 +69,7 @@ stages:
10569
-e F77=gfortran-5 -e F90=gfortran-5 quay.io/pypa/manylinux2014_i686 \
10670
/bin/bash -xc " \
10771
git config --global --add safe.directory /numpy && \
72+
yum install -y ninja && \
10873
cd /numpy && \
10974
/opt/python/cp39-cp39/bin/python -mvenv venv && \
11075
source venv/bin/activate && \
@@ -175,7 +140,7 @@ stages:
175140
- script: |
176141
python -m pip install -r test_requirements.txt
177142
# Don't use doc_requirements.txt since that messes up tests
178-
python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0
143+
python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0 ninja
179144
displayName: 'Install dependencies; some are optional to avoid test skips'
180145
- script: /bin/bash -c "! vulture . --min-confidence 100 --exclude doc/,numpy/distutils/ | grep 'unreachable'"
181146
displayName: 'Check for unreachable code paths in Python modules'
Collapse file

‎azure-steps-windows.yml‎

Copy file name to clipboardExpand all lines: azure-steps-windows.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ steps:
1010
- script: python -m pip install --upgrade pip wheel
1111
displayName: 'Install tools'
1212

13-
- script: python -m pip install -r test_requirements.txt
13+
- script: |
14+
python -m pip install ninja
15+
python -m pip install -r test_requirements.txt
1416
displayName: 'Install dependencies; some are optional to avoid test skips'
1517

1618
- powershell: |
Collapse file

‎pyproject.toml‎

Copy file name to clipboardExpand all lines: pyproject.toml
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ tracker = "https://github.com/numpy/numpy/issues"
145145
skip = "cp36-* cp37-* cp-38* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux_aarch64 *-win32"
146146
build-verbosity = "3"
147147
before-build = "bash {project}/tools/wheels/cibw_before_build.sh {project}"
148-
before-test = "pip install -r {project}/test_requirements.txt"
148+
# meson has a hard dependency on ninja, and we need meson to build
149+
# c-extensions in tests. There is a hack ninja PyPI package used in
150+
# build_requirements.txt for macOS, windows, linux but it cannot be in
151+
# test_requirements.txt since pyodide, which uses test_requirements.txt, does
152+
# not have it.
153+
before-test = "pip install ninja && pip install -r {project}/test_requirements.txt"
149154
test-command = "bash {project}/tools/wheels/cibw_test_command.sh {project}"
150155

151156
[tool.cibuildwheel.linux]
Collapse file

‎tools/travis-test.sh‎

Copy file name to clipboardExpand all lines: tools/travis-test.sh
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ setup_base()
8080

8181
run_test()
8282
{
83+
# meson has a hard dependency on ninja, and we need meson to build
84+
# c-extensions in tests. There is a hack ninja PyPI package used in
85+
# build_requirements.txt for macOS, windows, linux but it cannot be in
86+
# test_requirements.txt since pyodide, which uses test_requirements.txt, does
87+
# not have it.
88+
PYTHONOPTIMIZE="" $PIP install ninja
89+
8390
# Install the test dependencies.
8491
# Clear PYTHONOPTIMIZE when running `pip install -r test_requirements.txt`
8592
# because version 2.19 of pycparser (a dependency of one of the packages

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.