Include local versions of third-party dependencies, particularly those unavailable or outdated as OS packages.

This commit is contained in:
Chris Church
2013-06-23 21:04:55 -04:00
parent c2a0004c6c
commit cbd64ee65d
1516 changed files with 161293 additions and 110 deletions

View File

@@ -32,11 +32,20 @@
# Python
import json
import os
import sys
import urllib
import urlparse
# Requests
import requests
try:
import requests
except ImportError:
# If running from an AWX installation, use the local version of requests if
# if cannot be found globally.
local_site_packages = os.path.join(os.path.dirname(__file__), '..', '..',
'lib', 'site-packages')
sys.path.insert(0, local_site_packages)
import requests
class TokenAuth(requests.auth.AuthBase):