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

Explicit pip installation #17

Open
tokejepsen opened this issue Aug 4, 2017 · 0 comments
Open

Explicit pip installation #17

tokejepsen opened this issue Aug 4, 2017 · 0 comments

Comments

@tokejepsen
Copy link
Owner

Goal

Make the installation of git repositories explicit with commands in the environment file.

Motivation

Currently the automated process of installing the git repositories cannot be modified. In the case of wanting to install a git repository locally you have to install with conda's environment pip syntax. This means you have to download the repository every time you want to update the environment, which for large repositories takes time.

Implementation

You can currently install a git repository with the subcommands via. pip or setup.py. The problem is that subcommands are run on every startup, where we would only want to run the install commands on install and updating.
The solution could be to tag/mark subcommands for installation/updating and launching.

Possible syntax:

name: conda-git-example
dependencies:
- python=2.7
- git:
  - https://github.com/tokejepsen/conda-git-example.git:
    - on_update:
        - pip install git+file:$REPO_PATH
    - python $REPO_PATH/environment.py

This syntax would ensure backward compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant