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

build dependencies for an environment #8826

Closed
adrinjalali opened this issue Jun 26, 2019 · 2 comments
Closed

build dependencies for an environment #8826

adrinjalali opened this issue Jun 26, 2019 · 2 comments
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere

Comments

@adrinjalali
Copy link

This is related to #7090 and conda/conda-build#2791

The background is that we were thinking of having an environment file which would make it easier for our contributors (scikit-learn) to setup an environment. The main issues we encountered were the compiler across platforms and MPI. We saw that people had a hard time setting up their environments across platforms to be able to build the backage.

The recipe file allows you to specify which languages you need, and it tries to find the right compiler, and you can set certain packages to be used from the conda environment and not the system.

One way to approach the problem, is to enable those features in the environment file, instead of trying to figure that out from the recipe, which as mentioned in conda/conda-build#2791 (comment) is hard to generalize. This way the maintainers can write a better more general conda environment file that can be used by contributors, and in the CI.

Ideally, I'd like to be able to do something like:

conda env create -f environment.yml
pip install -e .

And have something like the following in the environment file:

requirements:
  build:
    - {{ compiler('c') }}
  host:
    - mpi
@msarahan
Copy link
Contributor

Have you seen this: https://docs.conda.io/projects/conda-build/en/latest/user-guide/recipes/debugging.html

I think that might be what you're looking for. You'll still need to run the pip install -e . manually, and there's no good way to have dev versions of more than one thing at a time, but hopefully this helps you get started.

@kalefranz kalefranz added source::community catch-all for issues filed by community members type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere labels Apr 28, 2020
@github-actions
Copy link

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Aug 22, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity source::community catch-all for issues filed by community members type::support neither a bug nor feature, is really just a user having questions or difficulty somewhere
Projects
None yet
Development

No branches or pull requests

3 participants