eugenekolo / pip-install

MIT License
6 stars 5 forks source link

Exit fast #3

Closed yucongo closed 2 years ago

yucongo commented 2 years ago

Hi.

I just added a few lines in the beginning of install.install.

Purpose: Repeated runs of install.install(pkg) will take much less time. The main use is in colab.

I've beeb fooling around a bit with colab and come to need a similar package as your install. I did a serch on pypi and found your install before I started writing my own.

install fits my need well except it approximatedly takes 3 secons for each package even when the pakage is already installed.

Hence the pr. Please take a look and merge it, or not, as you see it fit.

eugenekolo commented 2 years ago

Hey @yucongo , PR looks good. One question: Do you think we have to gate this feature under python3? Python2.7 has importlib.import_module as well.

eugenekolo commented 2 years ago

Thank you for the commit, merged.