Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 452dbe5

Browse filesBrowse files
committed
CI Use development Cython wheel rather than building from source (#29223)
1 parent 3395bf3 commit 452dbe5
Copy full SHA for 452dbe5

File tree

1 file changed

+11
-4
lines changed
Filter options

1 file changed

+11
-4
lines changed

‎build_tools/azure/install.sh

Copy file name to clipboardExpand all lines: build_tools/azure/install.sh
+11-4Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pre_python_environment_install() {
5050
check_packages_dev_version() {
5151
for package in $@; do
5252
package_version=$(python -c "import $package; print($package.__version__)")
53-
if ! [[ $package_version =~ "dev" ]]; then
53+
if [[ $package_version =~ "^[.0-9]+$" ]]; then
5454
echo "$package is not a development version: $package_version"
5555
exit 1
5656
fi
@@ -71,18 +71,25 @@ python_environment_install_and_activate() {
7171
python -m venv $VIRTUALENV
7272
source $VIRTUALENV/bin/activate
7373
pip install -r "${LOCK_FILE}"
74+
# TODO for now need pip 24.1b1 to find free-threaded wheels
75+
pip install -U --pre pip
76+
# TODO When there are CPython 3.13 free-threaded wheels for numpy,
77+
# scipy and cython move them to
78+
# build_tools/azure/cpython_free_threaded_requirements.txt. For now we
79+
# install them from scientific-python-nightly-wheels
80+
dev_anaconda_url=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
81+
dev_packages="numpy scipy Cython"
82+
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url $dev_packages
7483
fi
7584

7685
if [[ "$DISTRIB" == "conda-pip-scipy-dev" ]]; then
7786
echo "Installing development dependency wheels"
7887
dev_anaconda_url=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
79-
dev_packages="numpy scipy pandas"
88+
dev_packages="numpy scipy pandas Cython"
8089
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url $dev_packages
8190

8291
check_packages_dev_version $dev_packages
8392

84-
echo "Installing Cython from latest sources"
85-
pip install https://github.com/cython/cython/archive/master.zip
8693
echo "Installing joblib from latest sources"
8794
pip install https://github.com/joblib/joblib/archive/master.zip
8895
echo "Installing pillow from latest sources"

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.