Tidy with flake8

This commit is contained in:
Curtis
2015-04-11 22:50:11 +10:00
parent f6e5db93d8
commit 057cfe761f
211 changed files with 1622 additions and 1311 deletions
+15 -16
View File
@@ -1,4 +1,6 @@
import os,sys
import os
NAME = 'lua'
LUAINC = os.environ.get('UWSGICONFIG_LUAINC')
LUALIB = os.environ.get('UWSGICONFIG_LUALIB')
@@ -7,27 +9,24 @@ LUAPC = os.environ.get('UWSGICONFIG_LUAPC', 'lua5.1')
# we LUAINC/LUALIB/LUALIBPATH override the LUAPC for backwards compat
if LUAINC:
CFLAGS = ['-I%s' % LUAINC]
CFLAGS = ['-I%s' % LUAINC]
else:
try:
CFLAGS = os.popen('pkg-config --cflags %s' % LUAPC).read().rstrip().split()
except:
CFLAGS = ['-I/usr/include/lua5.1']
try:
CFLAGS = os.popen('pkg-config --cflags %s' % LUAPC).read().rstrip().split()
except:
CFLAGS = ['-I/usr/include/lua5.1']
if LUALIB:
LIBS = ['-l%s' % LUALIB]
LIBS = ['-l%s' % LUALIB]
else:
try:
LIBS = os.popen('pkg-config --libs %s' % LUAPC).read().rstrip().split()
except:
LIBS = ['-llua5.1']
try:
LIBS = os.popen('pkg-config --libs %s' % LUAPC).read().rstrip().split()
except:
LIBS = ['-llua5.1']
if LUALIBPATH:
LDFLAGS = ['-L%s' % LUALIBPATH]
LDFLAGS = ['-L%s' % LUALIBPATH]
else:
LDFLAGS = []
LDFLAGS = []
NAME='lua'
GCC_LIST = ['lua_plugin']