fixed python3 compilation

This commit is contained in:
roberto@quantal64
2012-06-01 19:57:07 +02:00
parent 474d04d6a1
commit ec2889b202
+5 -1
View File
@@ -177,7 +177,11 @@ def build_uwsgi(uc, print_only=False):
print("configured CFLAGS: %s" % ' '.join(cflags))
uwsgi_cflags = ' '.join(cflags).encode('hex')
try:
uwsgi_cflags = ' '.join(cflags).encode('hex')
except:
import binascii
uwsgi_cflags = binascii.b2a_hex(' '.join(cflags).encode('ascii')).decode('ascii')
if os.path.exists('uwsgibuild.lastcflags'):
ulc = open('uwsgibuild.lastcflags','r')