Skip to content

re-enable building conda package artifacts on appveyor / fix conda recipe #6460

Closed

Description

@tacaswell

In #6423 the conda package building was disabled due to libpng related build failures.

The failures are odd given that the build works the python setup.py develop used for running the tests.

See for details #6423 (comment)

Activity

  1. added
    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
    on May 22, 2016
  2. added this to the milestone on May 22, 2016
  3. tacaswell commented on May 22, 2016

    @tacaswell
    MemberAuthor
  4. jankatins commented on May 22, 2016

    @jankatins
    Contributor

    It seems that due to the way that conda-forge now has a libpng and this lib is differently named, we need a patch: conda-forge/matplotlib-feedstock@410106a#diff-ead893c9f392df956860bfe6a5dae3a8R6

    The test run probably work because of https://github.com/matplotlib/matplotlib/blob/master/appveyor.yml#L80 which put the static version into a special dir and renames it.

    I'm not sure how to proceed: I find it very unfortunate that the conda-forge and default libpng seem to differ.

    @ocefpaf do you have any idea why that is so?

  5. ocefpaf commented on May 22, 2016

    @ocefpaf
    Contributor

    @ocefpaf do you have any idea why that is so?

    The only difference is that we updated libpng. Not sure if there is any actual difference in the build that caused the different naming. I will investigate this more and, if that is something we can avoid, we will!

    Pinging @gillins who might help shed some light in the issue.

  6. jankatins commented on May 22, 2016

    @jankatins
    Contributor

    I can't even install that lib?

    c:\data\external\jupyter\jupyter_environment_kernels (conda_windows)
    [cf_png] λ conda create -n cf_png2 libpng=1.6.21 -c conda-forge
    Using Anaconda Cloud api site https://api.anaconda.org
    Fetching package metadata: ..................
    Solving package specifications: ....
    
    The following specifications were found to be in conflict:
      - libpng 1.6.21*
    Use "conda info <package>" to see the dependencies for each package.

    I compare the vc14 versions of the default channel (.17) and the conda-forge channel (.21):

    https://anaconda.org/anaconda/libpng/1.6.17/download/win-64/libpng-1.6.17-vc14_1.tar.bz2
    https://anaconda.org/conda-forge/libpng/1.6.21/download/win-64/libpng-1.6.21-vc14_1.tar.bz2

    The most interesting thing seems to be that the defaults versions contains an extra file called \Library\lib\png.lib which the conda-forge version does not contain. Both have the \Library\lib\libpng.lib.

    It seems that the original recipe simply copies the file:

    C:\data\downloads\libpng\win-64-libpng-1.6.17-vc14_1\Library\lib
    λ diff libpng.lib  png.lib
    
    C:\data\downloads\libpng\win-64-libpng-1.6.17-vc14_1\Library\lib
    λ diff libpng16.lib  png.lib
    
    C:\data\downloads\libpng\win-64-libpng-1.6.17-vc14_1\Library\lib
    λ diff libpng16_static.lib  png.lib
    Binary files libpng16_static.lib and png.lib differ

    @ocefpaf: do you think it would be possible to simply do the same?

  7. jankatins commented on May 22, 2016

    @jankatins
    Contributor
  8. jankatins commented on May 22, 2016

    @jankatins
    Contributor

    @ocefpaf:will send a PR against libpng-feedstock...

  9. added a commit that references this issue on May 22, 2016
  10. jankatins commented on May 22, 2016

    @jankatins
    Contributor
  11. modified the milestones: , on Oct 3, 2017
  12. tacaswell commented on Dec 24, 2020

    @tacaswell
    MemberAuthor

    This has been fully superseded by conda-forge, closing.

  13. removed this from the future releases milestone on Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuestopic: testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions