diff --git a/setup.py b/setup.py index 94994dd..db4d2c5 100755 --- a/setup.py +++ b/setup.py @@ -1,10 +1,3 @@ -from __future__ import unicode_literals -from __future__ import print_function -from __future__ import division -from __future__ import absolute_import -from future import standard_library -standard_library.install_aliases() -from builtins import object #!/usr/bin/env python # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. @@ -20,11 +13,23 @@ from builtins import object # limitations under the License. # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +from __future__ import unicode_literals +from __future__ import print_function +from __future__ import division +from __future__ import absolute_import import os import sys import fileinput import re import pprint +from subprocess import check_call +try: + from future import standard_library +except ImportError: + check_call(["pip", "install", "future"]) + from future import standard_library +standard_library.install_aliases() +from builtins import object import distutils import configparser import setuptools