Comments (9)
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.
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.
@isuruf Please reopen this issue
from zlib-feedstock.
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.
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.
Can you please give a MWE that exhibits the bug?
from zlib-feedstock.
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.
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.
Okay, thank you for your reply.
from zlib-feedstock.
Related Issues (17)
- update to 1.2.9 HOT 2
- Upgrade to 1.2.10 HOT 1
- MNT: The zlib recipe has some lint :(
- @conda-forge-admin, please re-render HOT 1
- @conda-forge-admin, rerender HOT 1
- @conda-forge-admin, rerender HOT 1
- @conda-forge-admin, rerender HOT 1
- @conda-forge-admin, please re-render HOT 1
- @conda-forge-admin, rerender HOT 1
- Remove static libs linux HOT 1
- Something broken with zlib vs. libzlib files (or run-export) HOT 20
- tracking issue for pkgconfig challenges with lib HOT 1
- libzlib package does not contain file *.a but the test exist HOT 3
- @conda-forge-admin please rerender HOT 1
- inflatePrime missing HOT 4
- Is it on purpose that `libz.dylib` is in the `zlib` package? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlib-feedstock.