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

CI Use development Cython wheel rather than building from source #29223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 5 additions & 13 deletions 18 build_tools/azure/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pre_python_environment_install() {
check_packages_dev_version() {
for package in $@; do
package_version=$(python -c "import $package; print($package.__version__)")
if ! [[ $package_version =~ "dev" ]]; then
if [[ $package_version =~ "^[.0-9]+$" ]]; then
echo "$package is not a development version: $package_version"
exit 1
fi
Expand All @@ -78,31 +78,23 @@ python_environment_install_and_activate() {
pip install -r "${LOCK_FILE}"
# TODO for now need pip 24.1b1 to find free-threaded wheels
pip install -U --pre pip
# TODO When there are CPython 3.13 free-threaded wheels for numpy and
# scipy move this to
# TODO When there are CPython 3.13 free-threaded wheels for numpy,
# scipy and cython move them to
# build_tools/azure/cpython_free_threaded_requirements.txt. For now we
# install them from scientific-python-nightly-wheels
dev_anaconda_url=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
dev_packages="numpy scipy"
dev_packages="numpy scipy Cython"
pip install --pre --upgrade --timeout=60 --extra-index $dev_anaconda_url $dev_packages
# TODO Move cython to
# build_tools/azure/cpython_free_threaded_requirements.txt when there
# is a CPython 3.13 free-threaded wheel
# For now, we need the development version of Cython which has CPython
# 3.13 free-threaded fixes so we install it from source
pip install git+https://github.com/cython/cython
fi

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

check_packages_dev_version $dev_packages

echo "Installing Cython from latest sources"
pip install https://github.com/cython/cython/archive/master.zip
echo "Installing joblib from latest sources"
pip install https://github.com/joblib/joblib/archive/master.zip
echo "Installing pillow from latest sources"
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.