Skip to content

BLD: Install anaconda client in a separate step #48755

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
Sep 26, 2022

Conversation

lithomas1
Copy link
Member

  • closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

The uploading wasn't working properly, since conda is unfortunately not added to PATH on Github Actions, it is on Azure Pipelines on the other repo.

I tested on my repo, and it should also work here.

@lithomas1 lithomas1 added the Build Library building on various platforms label Sep 24, 2022
@lithomas1 lithomas1 added this to the 1.6 milestone Sep 24, 2022
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

Looks good, added some comments, but they're just ideas, and nothing that should block this from being merged.

python-version: '3.8'

- name: Install anaconda client
if: ${{ success() && (env.IS_SCHEDULE_DISPATCH == 'true' || env.IS_PUSH == 'true') }}
Copy link
Member

Choose a reason for hiding this comment

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

Is env.IS_PUSH different from github.event_name == 'push'?

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, it actually only looks for tagged events.

- name: Build sdist
run: |
pip install build
python -m build --sdist
- name: Test the sdist
shell: bash -el {0}
Copy link
Member

Choose a reason for hiding this comment

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

Not for this PR, but I think it'd be nice to have this at the beginning for all steps. I think I tried once and had some problems, even if it's supposed to be supported. But maybe worth having a look at some point, as we're using conda environments most of the time.

python-version: '3.8'
channels: conda-forge,defaults
Copy link
Member

Choose a reason for hiding this comment

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

I had bad experiences in the past with the defaults channel (when mixed with conda-forge), and I've been using conda-forge only. If you've got a reason to have defaults surely fine, but otherwise I'd probably remove it.

@lithomas1
Copy link
Member Author

Going to put this now, so I can see how it runs tonight.

@lithomas1 lithomas1 merged commit 6b93a0c into pandas-dev:main Sep 26, 2022
@lithomas1 lithomas1 deleted the fix-cibuildwheel-submit branch September 26, 2022 00:26
@mroeschke mroeschke modified the milestones: 1.6, 2.0 Oct 13, 2022
noatamir pushed a commit to noatamir/pandas that referenced this pull request Nov 9, 2022
* BLD: Install anaconda client in a separate step

* Apply suggestions from code review

Co-authored-by: Marc Garcia <[email protected]>

* Update wheels.yml

* Update wheels.yml

Co-authored-by: Marc Garcia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants