Skip to content

Commit

Permalink
Merge pull request canonical#163 from juju-solutions/johnsca/refactor…
Browse files Browse the repository at this point in the history
…/wh-pkgs

Minor refactor to bootstrap
  • Loading branch information
johnsca authored and George Kraft committed Jun 1, 2020
1 parent 4761d6c commit a7ad4f1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/charms/layer/basic.py
Expand Up @@ -175,9 +175,7 @@ def bootstrap_charm_deps():
# a set so that we can ignore the pre-install packages and let pip
# choose the best version in case there are multiple from layer
# conflicts)
pkgs = {os.path.basename(wheel).split('-')[0].replace('_', '-')
for wheel in glob('wheelhouse/*')}
pkgs -= set(pre_install_pkgs)
pkgs = _load_wheelhouse_versions().keys() - set(pre_install_pkgs)
check_call([pip, 'install', '-U', '--ignore-installed', '--no-index',
'-f', 'wheelhouse'] + list(pkgs))
# re-enable installation from pypi
Expand Down

0 comments on commit a7ad4f1

Please sign in to comment.