asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
665 stars 58 forks source link

Support installing default pip packages #39

Closed rlex closed 6 years ago

rlex commented 6 years ago

Subj. Allows you to install default packages on each python install. Basically same as in nodejs / ruby official plugins: https://github.com/asdf-vm/asdf-nodejs/blob/master/bin/install#L238-L252 https://github.com/asdf-vm/asdf-ruby/blob/master/bin/install#L52-L71

pkgs should be listed in ~/.default-eggs, one per line. I'm not sure if "egg" is correct naming for python pkgs, though.

rlex commented 6 years ago

any updates on this?

danhper commented 6 years ago

Hi, sorry for the delay and thank you for the PR. I think this feature is a good idea, but I do not like the name of the file, as egg is a packaging format which is being replaced by wheel. As this is a way to install Python packages, I would rather simply name the file ~/.default-python-packages. What do you think?

rlex commented 6 years ago

Yep, looks better. Should be good now?

danhper commented 6 years ago

Great, thank you!

adamyonk commented 6 years ago

Should update the readme with this!