mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-05 13:11:33 +00:00
fixed python3 compilation
This commit is contained in:
+5
-1
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user