-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Fix Appveyor build. #8334
Conversation
635e2ab
to
6e18e57
Compare
attn @tacaswell |
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`.
6e18e57
to
0140c84
Compare
- 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 |
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.
The opposite is true as well.
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.
- 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).
- 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.
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.
conda-build 2.1.7 has now been released on conda-forge for windows py2.7.
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.
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)
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.
nice work.
should we throw a conda update --all
command in there?
I'd leave that as a separate issue. |
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.