ReproNim / reproman

ReproMan (AKA NICEMAN, AKA ReproNim TRD3)
https://reproman.readthedocs.io
Other
24 stars 14 forks source link

venv: lacks "files" association for an installed script/entrypoint #502

Open yarikoptic opened 4 years ago

yarikoptic commented 4 years ago

I did

reproman retrace `which datalad`

where datalad was installed via pip install -e so I got

    - name: datalad
      version: 0.12.0rc6
      local: true
      location: /home/yoh/proj/datalad/datalad-master
      editable: true

but nowhere actual which datalad pointed file was listed. Can't we figure out which pip installed package provided that script (i.e. place files: entry with it within this package listing)?

kyleam commented 4 years ago

Can't we figure out which pip installed package provided that script (i.e. place files: entry with it within this package listing)?

We get the associated files with pip show -f, but that isn't supported with editable packages. pip show -f datalad with an editable datalad shows

Files:
Cannot locate installed-files.tx

For a regular install, the file section is

Files:
  ../../../bin/datalad
  ../../../bin/git-annex-remote-datalad
  ../../../bin/git-annex-remote-datalad-archives
  ../../../bin/git-annex-remote-ora
  datalad-0.13.0rc2.dist-info/COPYING
[... 634 lines ...]
  datalad/version.py

So, any ideas on how a script can be linked to an editable package?