summaryrefslogtreecommitdiff
path: root/bin/ansible
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2018-09-07 12:14:46 -0700
committerToshio Kuratomi <a.badger@gmail.com>2018-10-18 15:09:38 -0700
commit4d9504e775d89f06b3e7199e076e62ff4fd9d1d2 (patch)
tree4187ff04ff2ba7f4e88aab31752aa34b2c8a19b7 /bin/ansible
parent65bb6a5af311d3ae8a487100781184bdcf1016c3 (diff)
downloadansible-4d9504e775d89f06b3e7199e076e62ff4fd9d1d2.tar.gz
Remove runtime usage of pkg_resources.
This should provide a startup time speed boost at the expense of making it harder to get ansible to use newer versions of packages than are provided by the platform.
Diffstat (limited to 'bin/ansible')
-rwxr-xr-xbin/ansible10
1 files changed, 1 insertions, 9 deletions
diff --git a/bin/ansible b/bin/ansible
index cc4bfd7a69..cd83e9a413 100755
--- a/bin/ansible
+++ b/bin/ansible
@@ -22,15 +22,7 @@ from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
__requires__ = ['ansible']
-try:
- import pkg_resources
-except Exception:
- # Use pkg_resources to find the correct versions of libraries and set
- # sys.path appropriately when there are multiversion installs. But we
- # have code that better expresses the errors in the places where the code
- # is actually used (the deps are optional for many code paths) so we don't
- # want to fail here.
- pass
+
import os
import shutil