From ae4c10e9369887fe9fcb6b6316f8fcf1bfe638e5 Mon Sep 17 00:00:00 2001 From: Stuart Axon Date: Fri, 23 Sep 2016 15:54:20 +0100 Subject: [PATCH] Workaround for python3 in setup.py (#1130) python3 fix --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 06f12e01a..78dac4d0f 100755 --- a/setup.py +++ b/setup.py @@ -1,5 +1,8 @@ #!/usr/bin/env python import os +import sys + os.chdir('bindings/python') -execfile('setup.py') +with open('setup.py) as filename: + exec(filename.read())