~bigdata-dev/charms/trusty/apache-hadoop-hdfs-secondary/readme

« back to all changes in this revision

Viewing changes to hooks/setup.py

  • Committer: Cory Johns
  • Date: 2015-02-10 21:11:33 UTC
  • Revision ID: cory.johns@canonical.com-20150210211133-mqm333nc7prp3wi6
Updated jujuresources

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
def install_jujuresources():
28
28
    """
29
 
    Install the jujuresources library from Launchpad, if not present.
 
29
    Install the bundled jujuresources library, if not present.
30
30
    """
31
 
    # TODO Support bootstrapping from bundled egg
32
31
    try:
33
32
        import jujuresources  # noqa
34
33
    except ImportError:
35
 
        subprocess.check_call([
36
 
            'pip', 'install',
37
 
            'bzr+http://bazaar.launchpad.net/~johnsca/jujuresources/trunk#egg=jujuresources'])
 
34
        subprocess.check_call(['pip', 'install', 'resources/jujuresources-0.2.tar.gz'])