Skip to content

alexprengere/localinstall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LocalInstall

Local installer of Python packages. This requires pip.

Python API

Expose function to install and import locally.

This piece of code is used to install on the fly a package locally. It can be useful to use third party modules on environment where you can deploy code but do have direct ssh access to install stuff. For example to run streaming jobs in Python on a Hadoop cluster:

from local_install import install
pytz = install('pytz')
NO_PYTZ = pytz is None

CLI

python local_install.py pytz
python local_install.py pytz --target toto