def finalize_options(self):
if self.cross_compile and os.environ.has_key('PYTHONXCPREFIX'):
prefix = os.environ['PYTHONXCPREFIX']
sysconfig.get_python_lib = get_python_lib
sysconfig.PREFIX = prefix
sysconfig.EXEC_PREFIX = prefix
# reinitialize variables
sysconfig._config_vars = None
sysconfig.get_config_var("LDSHARED")
_build.finalize_options(self)
the code above that will get the error when run on python3.5. the error is : crosscompile.py", line 16, in finalize_options AttributeError: '_Environ' object has no attribute 'has_key'
does anyone have idea how to modify the code to workable in python3.5?