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

"develop" mode? #695

Open
martindurant opened this issue Feb 11, 2021 · 3 comments
Open

"develop" mode? #695

martindurant opened this issue Feb 11, 2021 · 3 comments
Labels
type::feature-request New feature proposal

Comments

@martindurant
Copy link

cc #342 (pip interop)

conda used to have a "develop" command that worked something like pip install -e: populate the metadata for the directory passed , but only link the files, don't copy them. The idea is, that the version of the package in the dev directory will appear installed, so a copy won't be pulled in by subsequent install/updates. Note that these would be python package directories with install.py, not conda install scripts.

If pip interop was working currently, this would not be required, as it would be enough to run the pip command above.

Any plans?

@wolfv
Copy link
Member

wolfv commented Feb 12, 2021

Hi @martindurant thanks for opening an issue!

Yeah, I think having pip interop work would be great. I am still not sure what it would take to make it work. Generally, installing into a mamba-created environment with pip install -e . works fine, and I have been doing it a lot. The only problems arise when updating packages, as mamba won't recongize the pip installed packages.

I think for a develop mode it's easier to rely on the build tool (pip / setup.py in this case) as we don't have all the same information...

@wolfv
Copy link
Member

wolfv commented Feb 12, 2021

It could also be interesting to make a modifiable package cache that shadows the general package cache, and make it possible to easily modify / debug files in that temporary package cache.

@adriendelsalle adriendelsalle added the type::feature-request New feature proposal label Jun 4, 2021
@hmaarrfk
Copy link
Contributor

Would it be reasonable to request a "mark as installed" where we can mark a package as being installed, copying the metadata, but without actually copying the contents of the files?

mamba mark_as_installed numpy>=1.20

we would then be in charge of installing things (with pip install -e . -vv).

The advantage is that:

  1. This would work for C dependencies (which i'm interested in )
  2. This would be more compatible with packages that don't have the same names as their pypi counterparts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature-request New feature proposal
Projects
None yet
Development

No branches or pull requests

4 participants