Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

Requirements spec #203

Merged
merged 4 commits into from
Nov 19, 2015
Merged

Requirements spec #203

merged 4 commits into from
Nov 19, 2015

Conversation

malev
Copy link
Contributor

@malev malev commented Nov 18, 2015

A replacement for #172
@dan-blanchard, what do you think?

@dan-blanchard
Copy link

This is missing a big piece of my PR, which is the ability to have conda figure out which dependencies are available via conda and which it needs to use pip for. That's actually the whole reason I put together my PR. This is just an alternative format to list conda dependencies.

@malev
Copy link
Contributor Author

malev commented Nov 18, 2015

oh, so you want to have a single list of commands and having conda-env figure out which one is in conda and which on is in pypi? am I right?

@dan-blanchard
Copy link

Yeah, exactly. This is mostly useful because most of the projects I work on the other devs do not use conda, so having to always go through the requirements list and then manually conda install everything myself was a pain. Also, dependencies are the real issue here, because often times something won't be available via conda, but it relies on numpy or pandas, which should be installed via conda.

That's why my PR has this function to get all of the pip dependencies. And then the logic here that checks what's available via conda and what is not (and it knows to skip editable packages, because those are only for pip).

@dan-blanchard
Copy link

Also, pip needs to be called like this in order for editable packages to be checked out within the conda environment instead of just in the current directory. And passing on the command-line arguments for editable packages is tricky too.

self.name = name
self.msg = None

def can_handle(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to have normal methods after private ones...

so

def __init__  ...

def _valid_file ...

def _valid_name ....

def can_handle ...

@malev
Copy link
Contributor Author

malev commented Nov 19, 2015

  1. Gonna merge this now.
  2. Gonna work on your PR, I think it's gonna be a good feature.
  3. Thanks for the tip on pip

malev added a commit that referenced this pull request Nov 19, 2015
@malev malev merged commit 6966196 into develop Nov 19, 2015
@malev malev deleted the requirements-spec branch November 19, 2015 00:08

def _valid_name(self):
if self.name is None:
self.msg = "Environment with requierements.txt file needs a name"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here:
requierements.txt should be requirements.txt

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

Successfully merging this pull request may close these issues.

4 participants