pygradle icon indicating copy to clipboard operation
pygradle copied to clipboard

support for conda packages

Open quasiben opened this issue 8 years ago • 5 comments

quasiben avatar Aug 16 '16 19:08 quasiben

When I read the blog post about PyGrade this was the first thing I was wondering about. As many Python users we are now using Conda in addition to pip which clearly adds a lot of complexity to the installation of requirements.

Did anyone manage to use PyGradle with conda?

As I observe that this ticket was raise by someone from Continuum.io I would not be afraid to ask @quasiben why Conda team did not write a conda-wrapper for pip?

If Conda would provide its own version of PIP these kind of problems would not have happened but as long PIP is not able to use conda to install packages when they are available we are all doomed to use a system with two package managers.

ssbarnea avatar Sep 22 '16 07:09 ssbarnea

Some means of integrating pip-installed packages would be really helpful. Our builds have revealed problems trying to mix Conda and pip. In the absence of a Conda install it's rather more difficult to consider deploying any tool.

steveholden avatar Sep 22 '16 07:09 steveholden

It seems like implementing this here would entail:

  1. support conda packages in pivy importer
  2. support conda envs in addition to pip envs (configure which you want)
  3. support installing conda packages to said envs

Maybe in a perfect world it would also do some magic to setup/download miniconda for you. Thoughts?

derenrich avatar Jan 05 '17 02:01 derenrich

cc @teoliphant since Travis spoke to us about this at PyCon 2016

I'm not sure anyone on the team has enough experience with Conda to know the ins and outs of what would be required to integrate it, though from what I can tell it would be a somewhat large effort depending on how deeply you wanted to integrate (since {py}gradle makes some asumptions about tools like virtualenv, pip, pex, etc).

lorencarvalho avatar Jan 05 '17 18:01 lorencarvalho

There is a plugin that deals with conda, but probably wont integrate easily ... https://github.com/JetBrains/gradle-python-envs

mjscosta avatar Sep 20 '17 10:09 mjscosta