Fix setup.py
- Setup needs future module, install future using pip if not available.
This commit is contained in:
		
							
								
								
									
										19
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								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
 | 
					#!/usr/bin/env python
 | 
				
			||||||
# Licensed under the Apache License, Version 2.0 (the 'License');
 | 
					# Licensed under the Apache License, Version 2.0 (the 'License');
 | 
				
			||||||
# you may not use this file except in compliance with 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.
 | 
					# limitations under the License.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT
 | 
					# 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 os
 | 
				
			||||||
import sys
 | 
					import sys
 | 
				
			||||||
import fileinput
 | 
					import fileinput
 | 
				
			||||||
import re
 | 
					import re
 | 
				
			||||||
import pprint
 | 
					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 distutils
 | 
				
			||||||
import configparser
 | 
					import configparser
 | 
				
			||||||
import setuptools
 | 
					import setuptools
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user