reproman icon indicating copy to clipboard operation
reproman copied to clipboard

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

Open yarikoptic opened this issue 5 years ago • 1 comments
trafficstars

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)?

yarikoptic avatar Feb 07 '20 23:02 yarikoptic

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?

kyleam avatar Jun 15 '20 18:06 kyleam