TYPO corrected, no need to intermediate variables like host, flags = glb.flags removed

This commit is contained in:
S.Çağlar Onur
2005-08-03 17:58:21 +00:00
parent 2f20642a97
commit 0f23668367
2 changed files with 5 additions and 8 deletions
-1
View File
@@ -19,7 +19,6 @@ from variables import glb
env = glb.env
dirs = glb.dirs
flags = glb.flags
def pkgDIR():
return env.pkg_dir
+5 -7
View File
@@ -26,17 +26,16 @@ def exportFlags():
# Build systems depend on these environment variables. That is why
# we export them instead of using as (instance) variables.
values = pisi.config.config.values
environ['HOST'] = host = values.build.host
environ['CFLAGS'] = cflags = values.build.cflags
environ['CXXFLAGS'] = cxxflags = values.build.cxxflags
environ['LDFLAGS'] = ldflags = values.build.ldflags
environ['HOST'] = values.build.host
environ['CFLAGS'] = values.build.cflags
environ['CXXFLAGS'] = values.build.cxxflags
environ['LDFLAGS'] = values.build.ldflags
class Env(object):
'''General environment variables used in actions API'''
def __init__(self):
setFlags()
exportFlags()
self.__vars = {
'pkg_dir': 'PKG_DIR',
@@ -73,7 +72,6 @@ class Dirs:
localstate = 'var/lib'
defaultprefix = 'usr'
class Variables(pisi.config.Config):
const = pisi.constants.const
env = Env()