Skip to content
This repository was archived by the owner on Feb 15, 2023. It is now read-only.

Commit 3d6cbb2

Browse files
authored
MAINT: master->main refs (#166)
* there are no plans I'm aware of to change `master` to `main` on the wheels repo, but I've started seeing cron errors related to `master` checkouts of the main repo * so, try to fixup cases where `master` is incorrectly used to reference the main SciPy repo, but leave `master` in for those cases where we are referring to the wheels repo proper (at least for now) What has changed: - `master` -> `main` in a bunch of places for SciPy and NumPy (distutils); latter shim may not even be needed anymore but things seem "ok" so.. - `appveyor.yml` gets a bigger set of changes: - it needed some newer C++ things, so the base image is bumped to a newer Visual Studio version (already done in the main repo quite some time ago, albeit on Azure instead) - bump build-time version of NumPy to `1.18.5` (not using `pyproject.toml` for Windows builds here yet); not going as high as `main` yet to facilitate the branching here - DLL/mingw toolchain adjustments for VS 2019 - the `install_wheel` command has been adjusted to `install_wheel --prefer-binary` so that the 32-bit Linux Azure jobs don't hang/run for 40+ minutes trying to build NumPy `1.22.4` from source; other command suggestions failed for whatever reason, maybe because installing directly from a local wheel file is slightly different.. - bump `multibuild` submodule to latest upstream version; no real benefit to this--it was one of many attempts to deal with the 32-bit Linux wheel issues, but I'm not sure it is worth reverting either since we usually bump liberally there anyway What is still failing in CI? - 32-bit Linux wheels have 3 failures, 2 of which are handled by scipy/scipy#16390, the other is new as of today so I'm less worried about it for branching purposes - that's it, everything else is passing, which is a huge change from where we were before this PR (and with the help of several recent PRs on `main` in main repo)
1 parent 9deab43 commit 3d6cbb2

7 files changed

+22
-22
lines changed

.gitmodules

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
[submodule "numpy-distutils"]
1414
path = numpy-distutils
1515
url = https://github.com/numpy/numpy.git
16-
branch = master
16+
branch = main

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
global:
88
- REPO_DIR=scipy
99
# Also see DAILY_COMMIT below
10-
- BUILD_COMMIT=master
10+
- BUILD_COMMIT=main
1111
- PLAT=x86_64
1212
- CYTHON_BUILD_DEP="Cython==0.29.24"
1313
- PYTHRAN_BUILD_DEP="pythran"
@@ -20,7 +20,7 @@ env:
2020
- secure:
2121
"fne+dO/N+Zv8pusPVO6S58p7lFWLDIwjXwf/IgBPxGSdDFEQVY8xl0+nGPNNzYZfmX/inBrb/3+8el9sggC+X7KG6mGmCtcpwems2sWn6XY5OQ+kWl8SEdDs2SiAsrieqbC3d1cmMoHyddX/YdGWVSdIji70nRER0j9wjNwYNlE="
2222
# Commit when running from master branch
23-
- DAILY_COMMIT=master
23+
- DAILY_COMMIT=main
2424

2525
language: python
2626
dist: bionic

appveyor.yml

+13-13
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ clone_depth: 50
55
# No reason for us to restrict the number concurrent jobs
66
max_jobs: 100
77

8-
image: Visual Studio 2017
8+
image: Visual Studio 2019
99

1010
cache:
1111
- '%LOCALAPPDATA%\pip\Cache'
1212

1313
environment:
1414
global:
1515
MINGW_32: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw32\bin
16-
MINGW_64: C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
16+
MINGW_64: C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
1717
CYTHON_BUILD_DEP: Cython==0.29.24
1818
PYTHRAN_BUILD_DEP: pythran
19-
NUMPY_TEST_DEP: numpy==1.17.3
19+
NUMPY_TEST_DEP: numpy==1.18.5
2020
PYBIND11_BUILD_DEP: pybind11==2.7.0
2121
TEST_MODE: fast
2222
APPVEYOR_SAVE_CACHE_ON_ERROR: true
@@ -25,8 +25,8 @@ environment:
2525
WHEELHOUSE_UPLOADER_SECRET:
2626
secure:
2727
jIyaD+VWmTlDGXThsKAkiLq8iljgYHiriq+kEUuW9tHj67R5BapLxLjbfco2nt8Y
28-
BUILD_COMMIT: master
29-
DAILY_COMMIT: master
28+
BUILD_COMMIT: main
29+
DAILY_COMMIT: main
3030

3131
matrix:
3232
- PYTHON: C:\Python310-x64
@@ -53,15 +53,15 @@ environment:
5353
- PYTHON: C:\Python38
5454
PYTHON_VERSION: 3.8
5555
PYTHON_ARCH: 32
56-
NUMPY_BUILD_DEP: numpy==1.17.3
57-
NUMPY_TEST_DEP: numpy==1.17.3
56+
NUMPY_BUILD_DEP: numpy==1.18.5
57+
NUMPY_TEST_DEP: numpy==1.18.5
5858
CYTHON_BUILD_DEP: Cython
5959

6060
- PYTHON: C:\Python38-x64
6161
PYTHON_VERSION: 3.8
6262
PYTHON_ARCH: 64
63-
NUMPY_BUILD_DEP: numpy==1.17.3
64-
NUMPY_TEST_DEP: numpy==1.17.3
63+
NUMPY_BUILD_DEP: numpy==1.18.5
64+
NUMPY_TEST_DEP: numpy==1.18.5
6565
CYTHON_BUILD_DEP: Cython
6666

6767
init:
@@ -121,7 +121,7 @@ install:
121121
ls $destination
122122
123123
# Upgrade to the latest pip, setuptools, and wheel.
124-
- python -m pip install -U pip setuptools wheel
124+
- python -m pip install -U pip "setuptools==59.5.0" wheel
125125

126126
# Install build requirements.
127127
- python -m pip install "%CYTHON_BUILD_DEP%" "%PYTHRAN_BUILD_DEP%" "%NUMPY_BUILD_DEP%" "%PYBIND11_BUILD_DEP%"
@@ -149,14 +149,14 @@ build_script:
149149
- type ..\LICENSE_win32.txt >> LICENSE.txt
150150
# Copy over additional DLLs to bundle to the wheels.
151151
# The find command below is just to print where the libraries are, for debugging.
152-
- C:\cygwin\bin\find "C:\Program Files (x86)\Microsoft Visual Studio 14.0" -type f -name 'msvcp*.dll'
152+
- C:\cygwin\bin\find "C:\Program Files (x86)\Microsoft Visual Studio" -type f -name 'msvcp*.dll'
153153
# * Python >=3.5
154154
# Copy over MSVC C++ runtime library, which Python.org does no bundle, but is required by us.
155155
# The version should match the compiler version, see https://wiki.python.org/moin/WindowsCompilers
156156
- mkdir "build\lib.win32-%PYTHON_VERSION%\scipy\.libs"
157157
- mkdir "build\lib.win-amd64-%PYTHON_VERSION%\scipy\.libs"
158-
- copy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x86\Microsoft.VC140.CRT\msvcp140.dll" "build\lib.win32-%PYTHON_VERSION%\scipy\.libs\"
159-
- copy "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\redist\x64\Microsoft.VC140.CRT\msvcp140.dll" "build\lib.win-amd64-%PYTHON_VERSION%\scipy\.libs\"
158+
- copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.29.30133\x86\Microsoft.VC142.CRT\msvcp140.dll" "build\lib.win32-%PYTHON_VERSION%\scipy\.libs\"
159+
- copy "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.29.30133\x64\Microsoft.VC142.CRT\msvcp140.dll" "build\lib.win-amd64-%PYTHON_VERSION%\scipy\.libs\"
160160
# Build wheel using setup.py
161161
- ps: |
162162
$PYTHON_ARCH = $env:PYTHON_ARCH

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pr:
1111
- master
1212

1313
variables:
14-
BUILD_COMMIT: "master"
14+
BUILD_COMMIT: "main"
1515

1616
jobs:
1717
- template: azure-posix.yml

azure-posix.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
variables:
1212
REPO_DIR: "scipy"
1313
PLAT: "x86_64"
14-
NIGHTLY_BUILD_COMMIT: "master"
15-
DAILY_COMMIT: "master"
14+
NIGHTLY_BUILD_COMMIT: "main"
15+
DAILY_COMMIT: "main"
1616
strategy:
1717
matrix:
1818
${{ insert }}: ${{ parameters.matrix }}
@@ -109,7 +109,7 @@ jobs:
109109

110110
- bash: |
111111
set -e
112-
if [ "$BUILD_COMMIT" == "master" ]; then
112+
if [ "$BUILD_COMMIT" == "main" ]; then
113113
ANACONDA_ORG="scipy-wheels-nightly"
114114
TOKEN="$MAPPED_SCIPY_WHEELS_NIGHTLY"
115115
echo getting SCIPY_WHEELS_NIGHTLY

config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function install_run {
7171
$PYTHON_EXE -m pip install $(pip_opts) setuptools_scm
7272

7373
# Copypaste from multibuild/common_utils.sh:install_run
74-
install_wheel
74+
install_wheel --prefer-binary
7575
mkdir tmp_for_test
7676
(cd tmp_for_test && run_tests)
7777
}

0 commit comments

Comments
 (0)