Skip to content

Build-in support for pipenv / Pipfile #717

@hyperknot

Description

@hyperknot

It seems that pipenv / Pipfile has a chance of turning to be the standard Python dependency management format, even included in the official docs as of Python 3.6.

Is there any way to add built-in Pipfile support in Anaconda? I understand that there ENV variable support, but I don't use them as I launch ST3 projects by opening .sublime-project files, not from command line.

With virtualenv-wrapper my solution was to put a project specific .anaconda file next to each .sublime-project file, with the following contents:

{
  "python_interpreter": "~/.virtualenvs/my_project/bin/python"
}

The problem with this was that:

  • it only worked if everyone used the default ~/.virtualenvs location
  • didn't work across OS-es.

Now with Pipfile we can finally solve this cleanly, without using .anaconda files, if there would be built-in support for Pipfile.

I don't know the internals of Anaconda, but I'd be willing to help if any help is needed in implementing Pipfile support. AFAIK, all what needs to be done is running pipenv --py to get the interpreter if a Pipfile is found.

Here is the other side of the discussion: https://github.com/kennethreitz/pipenv/issues/978

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions