Skip to content
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

ci: Remove mentions of conda-forge #4082

Merged
merged 6 commits into from
Jun 21, 2021

Conversation

seemethere
Copy link
Member

@seemethere seemethere commented Jun 17, 2021

We run into a lot of build / runtime issues when relying on things from
conda-forge. Now that Python 3.9 is more thoroughly supported on the
default anaconda channel lets remove the hooks for conda-forge now.

This PR also removes the av dependency from the conda meta.yaml since it's currently only available within conda-forge.

It isn't critical to run the import smoke tests that we specify for conda and the test coverage should already be covered by the unit tests which do install av but choose to install it from pypi instead. (which cannot be done with conda-build, see conda/conda-build#548)

I think not having av within the conda recipe should be fine considering the trade-off is having to use conda-forge for all of our dependencies.

Resolves #4076

Signed-off-by: Eli Uriegas [email protected]

We run into a lot of build / runtime issues when relying on things from
conda-forge. Now that Python 3.9 is more thoroughly supported on the
default anaconda channel lets remove the hooks for conda-forge now.

Signed-off-by: Eli Uriegas <[email protected]>
@seemethere seemethere force-pushed the remove_conda_forge branch from 8a6e5e4 to c333ae0 Compare June 17, 2021 19:32
@seemethere seemethere marked this pull request as ready for review June 17, 2021 19:38
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @seemethere , I'll stamp to unblock but I wonder if the CI failure is related?

@seemethere
Copy link
Member Author

seemethere commented Jun 17, 2021

Thanks @seemethere , I'll stamp to unblock but I wonder if the CI failure is related?

It is related since cudatoolkit=11.1 is only available for linux on the nvidia channel,

cc @ptrblck can we get the nvidia team to upload cudatoolkit=11.1 for windows on the nvidia conda channel?

conda create ${CONDA_CHANNEL_FLAGS} -yn "env$PYTHON_VERSION" python="$PYTHON_VERSION"
conda activate "env$PYTHON_VERSION"
# Install libpng from Anaconda (defaults)
conda install ${CONDA_CHANNEL_FLAGS} -c conda-forge libpng "jpeg<=9b" -y
conda install ${CONDA_CHANNEL_FLAGS} libpng "jpeg<=9b" -y
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you meant to remove CONDA_CHANNEL_FLAGS here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it might still be valuable to have the mechanism to insert channels into these easily.

For example I think we might go through this same exercise when attempting to add Python 3.10 support later on this year.

@seemethere seemethere force-pushed the remove_conda_forge branch from 555a2e3 to 55d3cbe Compare June 17, 2021 21:06
@seemethere seemethere force-pushed the remove_conda_forge branch from 5f4242f to fb796cb Compare June 21, 2021 17:04
@seemethere
Copy link
Member Author

Alright all of the relevant builds are passing here will merge once I get signal again

@seemethere seemethere merged commit d391a0e into pytorch:master Jun 21, 2021
@seemethere seemethere deleted the remove_conda_forge branch June 21, 2021 20:53
@github-actions
Copy link

Hey @seemethere!

You merged this PR, but no labels were added.

@seemethere
Copy link
Member Author

Hey @seemethere!

You merged this PR, but no labels were added.

What?

@fmassa
Copy link
Member

fmassa commented Jun 22, 2021

@seemethere we have a bot to ping us if we forget to add labels to merged PRs (to categorize between improvement / bugfix / etc). The labels are used to facilitate release notes creation. Don't worry, we will add the labels

@fmassa fmassa added the bug label Jun 22, 2021
facebook-github-bot pushed a commit that referenced this pull request Jun 25, 2021
Reviewed By: NicolasHug

Differential Revision: D29369897

fbshipit-source-id: a8c883cb0077952a1e22a00e34fab88594c1af0d
seemethere added a commit that referenced this pull request Jun 28, 2021
(cherry picked from commit d391a0e)
Signed-off-by: Eli Uriegas <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot install any version of torchvision newer than 0.2.2 with opencv for python 3.9 and pytorch 1.9.0
6 participants