@@ -50,7 +50,7 @@ pre_python_environment_install() {
50
50
check_packages_dev_version () {
51
51
for package in $@ ; do
52
52
package_version=$( python -c " import $package ; print($package .__version__)" )
53
- if ! [[ $package_version =~ " dev " ]]; then
53
+ if [[ $package_version =~ " ^[.0-9]+$ " ]]; then
54
54
echo " $package is not a development version: $package_version "
55
55
exit 1
56
56
fi
@@ -71,18 +71,25 @@ python_environment_install_and_activate() {
71
71
python -m venv $VIRTUALENV
72
72
source $VIRTUALENV /bin/activate
73
73
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
74
83
fi
75
84
76
85
if [[ " $DISTRIB " == " conda-pip-scipy-dev" ]]; then
77
86
echo " Installing development dependency wheels"
78
87
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 "
80
89
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url $dev_packages
81
90
82
91
check_packages_dev_version $dev_packages
83
92
84
- echo " Installing Cython from latest sources"
85
- pip install https://github.com/cython/cython/archive/master.zip
86
93
echo " Installing joblib from latest sources"
87
94
pip install https://github.com/joblib/joblib/archive/master.zip
88
95
echo " Installing pillow from latest sources"
0 commit comments