Skip to content

MNT use conda-forge for the pypy build on circle ci #18867

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 15 commits into from
Nov 19, 2020

Conversation

ogrisel
Copy link
Member

@ogrisel ogrisel commented Nov 19, 2020

Fixes: #18624

A patch for the upstream bug has been released on conda-forge but not yet an official release of PyPy on docker.

@ogrisel
Copy link
Member Author

ogrisel commented Nov 19, 2020

Note uncomment the scheduled trigger once this PR is green on circle ci.

@ogrisel ogrisel requested review from thomasjpfan and rth and removed request for thomasjpfan November 19, 2020 19:17
@ogrisel
Copy link
Member Author

ogrisel commented Nov 19, 2020

It's working! bash is a hell...

@alfaro96
Copy link
Member

This PR reminds me the following: Would it be worth it to build the wheels for pypy?

Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reference here is the build with pypy: https://app.circleci.com/pipelines/github/scikit-learn/scikit-learn/9715/workflows/6f86831c-7e63-42b3-9cd8-289c268b466c/jobs/126130

I like how this PR simplifies the pypy tests. LGTM

At some point we can move this to github actions and trigger with a [pypy build]. The workflow where we have to comment out the cron job in config.yml looks cumbersome.

fi

source pypy-env/bin/activate
eval "$(conda shell.bash hook)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting conda require quite a few steps..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was really hell. circle ci must also be doing something weird when passing the bash commands to execute in the container because some setups that would work in my local docker would not work on circle ci. And I could never get micromamba setup to work at all on circle ci (while it would work well and fast in my local setup).

@ogrisel
Copy link
Member Author

ogrisel commented Nov 19, 2020

This PR reminds me the following: Would it be worth it to build the wheels for pypy?

We could give it a try. But I would rather focus on updating the release doc for the existing wheel building setup first.

@ogrisel ogrisel merged commit 5a09d87 into scikit-learn:master Nov 19, 2020
@ogrisel ogrisel deleted the conda-forge-pypy branch November 19, 2020 21:45
@ogrisel
Copy link
Member Author

ogrisel commented Nov 20, 2020

Hum, the checkout step failed last night with:

Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed.

ssh: no key found

even though it worked when tested on this PR...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CircleCI fails on pypy3 build
3 participants