Skip to content

Commit

Permalink
Merge pull request #20279 from tylerjereddy/treddy_1_13_rc1_prep
Browse files Browse the repository at this point in the history
WIP, MAINT: 1.13.0rc1 prep [wheel build]
  • Loading branch information
tylerjereddy committed Mar 19, 2024
2 parents 16521ed + 932648e commit 38fdb9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ jobs:
MACOS_DEPLOYMENT_TARGET=12.0\
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH\
_PYTHON_HOST_PLATFORM=macosx-12.0-arm64\
PIP_PRE=1\
PIP_NO_BUILD_ISOLATION=false\
PKG_CONFIG_PATH=/opt/arm64-builds/lib/pkgconfig\
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
PKG_CONFIG_PATH=/opt/arm64-builds/lib/pkgconfig"
echo "CIBW_ENVIRONMENT_MACOS=$CIBW" >> "$GITHUB_ENV"
CIBW="sudo xcode-select -s /Applications/Xcode_15.2.app"
Expand All @@ -171,10 +168,7 @@ jobs:
MACOS_DEPLOYMENT_TARGET=10.9\
SDKROOT=/Applications/Xcode_11.7.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk\
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH\
_PYTHON_HOST_PLATFORM=macosx-10.9-x86_64\
PIP_PRE=1\
PIP_NO_BUILD_ISOLATION=false\
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"
_PYTHON_HOST_PLATFORM=macosx-10.9-x86_64"
echo "CIBW_ENVIRONMENT_MACOS=$CIBW" >> "$GITHUB_ENV"

CIBW="DYLD_LIBRARY_PATH=/usr/local/lib delocate-listdeps {wheel} &&\
Expand All @@ -190,22 +184,9 @@ jobs:
CIBW_ENVIRONMENT_PASS_LINUX: RUNNER_OS
CIBW_PRERELEASE_PYTHONS: True

# TODO remove the CIBW_BEFORE_BUILD_* lines once there are
# numpy2.0 wheels available on PyPI. Also remove/comment out the
# PIP_NO_BUILD_ISOLATION and PIP_EXTRA_INDEX_URL from CIBW_ENVIRONMENT
# (also for _MACOS and _WINDOWS below)
CIBW_BEFORE_BUILD_LINUX: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja; bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
CIBW_BEFORE_BUILD_WINDOWS: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja && bash {project}/tools/wheels/cibw_before_build_win.sh {project}"
CIBW_BEFORE_BUILD_MACOS: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja; bash {project}/tools/wheels/cibw_before_build_macos.sh {project}"
# Allow pip to find install nightly wheels if necessary
# Setting PIP_NO_BUILD_ISOLATION=false makes pip use build-isolation.
CIBW_ENVIRONMENT: "PIP_NO_BUILD_ISOLATION=false PIP_PRE=1 PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple"

CIBW_ENVIRONMENT_WINDOWS: >
PKG_CONFIG_PATH=c:/opt/64/lib/pkgconfig
PIP_PRE=1
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
PIP_NO_BUILD_ISOLATION=false
- uses: actions/upload-artifact@v4
with:
Expand Down
9 changes: 1 addition & 8 deletions ci/cirrus_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ cirrus_wheels_linux_aarch64_task:
- env:
CIBW_BUILD: cp311-manylinux* cp312-manylinux*
env:
CIBW_PRERELEASE_PYTHONS: True
# TODO remove the CIBW_BEFORE_BUILD_LINUX line once there are numpy2.0 wheels available on PyPI.
# Also remove/comment out PIP_NO_BUILD_ISOLATION, PIP_EXTRA_INDEX_URL flags.
CIBW_BEFORE_BUILD_LINUX: "pip install numpy>=2.0.0.dev0 meson-python cython pythran pybind11 ninja;bash {project}/tools/wheels/cibw_before_build_linux.sh {project}"
CIBW_ENVIRONMENT: >
PIP_PRE=1
PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
PIP_NO_BUILD_ISOLATION=false
CIBW_PRERELEASE_PYTHONS: False

build_script: |
apt install -y python3-venv python-is-python3
Expand Down
2 changes: 1 addition & 1 deletion scipy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
from scipy._lib import _pep440
# In maintenance branch, change to np_maxversion N+3 if numpy is at N
np_minversion = '1.22.4'
np_maxversion = '9.9.99'
np_maxversion = '2.3.0'
if (_pep440.parse(__numpy_version__) < _pep440.Version(np_minversion) or
_pep440.parse(__numpy_version__) >= _pep440.Version(np_maxversion)):
import warnings
Expand Down
2 changes: 1 addition & 1 deletion tools/version_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
MINOR = 13
MICRO = 0
ISRELEASED = False
IS_RELEASE_BRANCH = False
IS_RELEASE_BRANCH = True
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)


Expand Down

0 comments on commit 38fdb9a

Please sign in to comment.