-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
Conversation
build_tools/azure/install.sh
Outdated
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand the logic here. Shouldn't \.
be under the scope of the +
operator?
Also why a $
without an ^
?
I would have expected:
if [[ $package_version =~ "\.[0-9]+$" ]]; then | |
if [[ $package_version =~ "^[\.0-9]+$" ]]; then |
I confirmed it with https://regex101.com/r/O54PWi/1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was only checking the last part after the dot, dot included, i.e. .0a0
in 3.1.0a0
. I agree that your regex is more explicit. I'll push a fix doing this with the simplification that you can use .
instead of \.
inside []
.
Side-comment: the reason that this check needed to change is that Cython development version does not have dev in its name and is actually 3.1.0a0.
Apart from the regexp discussion above, this LGTM. I checked the CI logs for the |
Please re-trigger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming green CI on a new [scipy-dev]
build.
The free-threaded and scipy-dev CI build are green and I double-checked that Cython development version was used in both builds, merging! |
Cython has a development wheel in scientific-python-nightly-wheels as mentioned by @betatim in #29191 (comment)