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

Fix Appveyor build. #8334

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 1 commit into from
Mar 24, 2017
Merged

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Mar 18, 2017

Recent condas prefer (by default) packages in higher priority channels
to packages in lower priority channels regardless of their versions.
conda-forge sometimes serves older condas than the official repos, so we
need to put it at the end to avoid accidentally downgrading conda.

Do not depend on the user name to construct a temporary cache directory
when needed, as e.g. conda-build hides the required environment variable
(%USERNAME%) on Windows.

@anntzer anntzer force-pushed the fix-appveyor-conda-priority branch 6 times, most recently from 635e2ab to 6e18e57 Compare March 19, 2017 00:36
@anntzer
Copy link
Contributor Author

anntzer commented Mar 19, 2017

attn @tacaswell

@anntzer anntzer changed the title [WIP] Fix Appveyor build. Fix Appveyor build. Mar 19, 2017
@anntzer anntzer changed the title Fix Appveyor build. [MRG] Fix Appveyor build. Mar 19, 2017
Recent condas prefer (by default) packages in higher priority channels
to packages in lower priority channels regardless of their versions.
conda-forge sometimes serves older condas than the official repos, so we
need to put it at the end to avoid accidentally downgrading conda.

Do not depend on the user name to construct a temporary cache directory
when needed, as e.g. conda-build hides the required environment variable
(`%USERNAME%`) on Windows.

Simplify implementation of `matplotlib_fname`.
@anntzer anntzer force-pushed the fix-appveyor-conda-priority branch from 6e18e57 to 0140c84 Compare March 19, 2017 02:06
- cmd: conda config --add channels conda-forge
# conda-forge may serve outdated versions of certain packages (e.g. conda
# itself), so append it to the end of the list.
- cmd: conda config --append channels conda-forge
Copy link
Member

Choose a reason for hiding this comment

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

The opposite is true as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Right now conda-forge is serving an outdated version of conda which is the reason the Appveyor build broke. I would hope that the official conda channel never serves an outdated version of conda... I don't think serving outdated versions of other build dependencies is as much of an issue (if any).
  2. I could instead set the channel_priority option documented at https://conda.io/docs/channels.html#managing-conda-channels, but there are other issues with that (see the link). I don't have a strong opinion though.

Copy link
Member

Choose a reason for hiding this comment

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

conda-build 2.1.7 has now been released on conda-forge for windows py2.7.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

looks like this is not enough, I guess we also need a more recent version of conda itself (I guess what happens is that a recent conda-build exposes a bug in an old version of conda), see latest appveyor builds which fail with conda 4.2.13+conda-build 2.1.7 (vs my PR which uses 4.3.14/2.1.7)

Copy link
Member

@phobson phobson left a comment

Choose a reason for hiding this comment

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

nice work.

should we throw a conda update --all command in there?

@anntzer
Copy link
Contributor Author

anntzer commented Mar 23, 2017

I'd leave that as a separate issue.

@QuLogic QuLogic changed the title [MRG] Fix Appveyor build. Fix Appveyor build. Mar 24, 2017
@QuLogic QuLogic added this to the 2.1 (next point release) milestone Mar 24, 2017
@QuLogic QuLogic merged commit f836bc3 into matplotlib:master Mar 24, 2017
@anntzer anntzer deleted the fix-appveyor-conda-priority branch March 24, 2017 02:26
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.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.