GithubHelp home page GithubHelp logo

Comments (9)

isuruf avatar isuruf commented on June 25, 2024

I don't know where you got this zlib package, but it's certainly not from conda-forge. Please give the details asked in the issue template and make sure you are using conda-forge.

from zlib-feedstock.

ekomarova avatar ekomarova commented on June 25, 2024

This is the package from conda-forge: https://anaconda.org/conda-forge/zlib/1.2.13/download/linux-64/zlib-1.2.13-h166bdaf_4.tar.bz2
And its rendered recipe shows that exactly gcc v10* id needed:
requires:
- gcc_linux-64 10.*

from zlib-feedstock.

ekomarova avatar ekomarova commented on June 25, 2024

@isuruf Please reopen this issue

from zlib-feedstock.

isuruf avatar isuruf commented on June 25, 2024

You are omitting information from your comments.
Looking at the lines surrounding it, we only require gcc_linux-64 10.* in test. Why do you care about a dependency in test?

test:
  commands:
    - test -f ${PREFIX}/lib/libz.a
    - test -f ${PREFIX}/lib/libz${SHLIB_EXT}
    - test -f ${PREFIX}/include/zlib.h
  files:
    - test_compile_flags.bat
    - test_compile_flags.c
  requires:
    - gcc_linux-64 10.*

from zlib-feedstock.

ekomarova avatar ekomarova commented on June 25, 2024

My situation is that I have in the one environment zlib and zstd, which have different restrictions for gcc, which causes conflicts when installing test dependencies, such as the compiler.
For zstd this is:
requires:
- cmake
- gcc_linux-64 11.*
- pkg-config
And this means that potentially any user who wants to install these packages in the one environment and test them will not be able to install the test dependencies without encountering conflicts

from zlib-feedstock.

isuruf avatar isuruf commented on June 25, 2024

Can you please give a MWE that exhibits the bug?

from zlib-feedstock.

ekomarova avatar ekomarova commented on June 25, 2024

This may be a somewhat specific situation, but it can occur to those who use zlib and zstd in their products and then run a full test cycle. And before starting testing, a list of test dependencies is generated, which are taken from the packages. And since zlib and zstd have different constraints for the gcc_linux-64, we end up with two conflicting conditions:
gcc_linux-64 =10.*
gcc_linux-64 =11.*
which leads to confiicts.
To reproduce this, just have file dependencies.txt with the above constraints and try to run command:
conda install --yes --freeze-installed --file dependencies.txt -c conda-forge --override-channels

I assume that conda-forge does not test all the packages together in one environment, because it is not necessary, and therefore this problem will not arise, because not all users need to run tests of some environment which contains packages with different test dependencies, but for those who do, this problem may arise.

from zlib-feedstock.

isuruf avatar isuruf commented on June 25, 2024

And before starting testing, a list of test dependencies is generated, which are taken from the packages. And since zlib and zstd have different constraints for the gcc_linux-64

This is a misuse of the test dependencies. The test dependencies are meant to be used for testing one package in isolation. We cannot make them work with the test dependencies of other packages. You are on your own when you are using the test dependencies for something that is not supposed to be used for. Sorry.

from zlib-feedstock.

ekomarova avatar ekomarova commented on June 25, 2024

Okay, thank you for your reply.

from zlib-feedstock.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.