Skip to content
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

How to ignore_run_exports the {{compiler("cxx")}} requirement? #3973

Closed
tvandera opened this issue Jun 15, 2020 · 2 comments
Closed

How to ignore_run_exports the {{compiler("cxx")}} requirement? #3973

tvandera opened this issue Jun 15, 2020 · 2 comments
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@tvandera
Copy link

tvandera commented Jun 15, 2020

Actual Behavior

My meta.yaml I have:

requirements:
  build:
    - {{ compiler("cxx") }}

which results in a run_exports requirement of e.g. on linux of libstdcxx-ng

How do I ignore this requirement?

Expected Behavior

This apparently does not work:

build:
  ignore_run_exports:
    - {{ compiler("cxx") }}

When I add debug-printing in render.py, I get:

Filtering run exports
Specs:  {'strong': ['libgfortran-ng >=7,<8.0a0', 'libgcc-ng >=7.3.0']}
Ignore list:  ['gxx_linux-64', 'gfortran_linux-64']
Filtered specs:  {'strong': ['libgfortran-ng >=7,<8.0a0', 'libgcc-ng >=7.3.0']}
Output of conda info
     active environment : base
    active env location : /home/vanderaa/miniconda3
            shell level : 1
       user config file : /home/vanderaa/.condarc
 populated config files :
          conda version : 4.8.3
    conda-build version : 3.18.11
         python version : 3.7.7.final.0
       virtual packages : __glibc=2.19
       base environment : /home/vanderaa/miniconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/vanderaa/miniconda3/pkgs
                          /home/vanderaa/.conda/pkgs
       envs directories : /home/vanderaa/miniconda3/envs
                          /home/vanderaa/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.3 requests/2.23.0 CPython/3.7.7 Linux/4.2.0-42-generic ubuntu/14.04.6 glibc/2.19
                UID:GID : 1091:1112
             netrc file : None
           offline mode : False
@hmaarrfk
Copy link
Contributor

It seems maybe you have to:

ignore_run_exports_from:
#                 ^^^^^^   <-- from might be key

https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#export-runtime-requirements

Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Dec 21, 2023
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Jan 21, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 21, 2024
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Aug 20, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
Archived in project
Development

No branches or pull requests

2 participants