本文整理汇总了Python中posix.generate函数的典型用法代码示例。如果您正苦于以下问题:Python generate函数的具体用法?Python generate怎么用?Python generate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了generate函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: generate
def generate(env):
posix.generate(env)
env['SHLIBSUFFIX'] = '.dylib'
# put macports paths at front to override Apple's versions, fink path is after
# For now let people who want Macports or Fink tools specify it!
# env['ENV']['PATH'] = '/opt/local/bin:/opt/local/sbin:' + env['ENV']['PATH'] + ':/sw/bin'
# Store extra system paths in env['ENV']['PATHOSX']
filelist = ['/etc/paths',]
# make sure this works on Macs with Tiger or earlier
try:
dirlist = os.listdir('/etc/paths.d')
except:
dirlist = []
for file in dirlist:
filelist.append('/etc/paths.d/'+file)
for file in filelist:
if os.path.isfile(file):
f = open(file, 'r')
lines = f.readlines()
for line in lines:
if line:
env.AppendENVPath('PATHOSX', line.strip('\n'))
f.close()
示例2: generate
def generate(env):
posix.generate(env)
# Based on sunSparc 8:32bit
# ARG_MAX=1048320 - 3000 for environment expansion
env['MAXLINELENGTH'] = 1045320
env['PKGINFO'] = 'pkginfo'
env['PKGCHK'] = '/usr/sbin/pkgchk'
env['ENV']['PATH'] = env['ENV']['PATH'] + ':/opt/SUNWspro/bin:/usr/ccs/bin'
示例3: generate
def generate(env):
posix.generate(env)
# Based on sunSparc 8:32bit
# ARG_MAX=1048320 - 3000 for environment expansion
env["MAXLINELENGTH"] = 1045320
env["PKGINFO"] = "pkginfo"
env["PKGCHK"] = "/usr/sbin/pkgchk"
env["ENV"]["PATH"] = env["ENV"]["PATH"] + ":/usr/ccs/bin"
示例4: generate
def generate(env):
posix.generate(env)
env['PROGPREFIX'] = ''
env['PROGSUFFIX'] = '.exe'
env['SHLIBPREFIX'] = ''
env['SHLIBSUFFIX'] = '.dll'
env['LIBPREFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX' ]
env['LIBSUFFIXES'] = [ '$LIBSUFFIX', '$SHLIBSUFFIX' ]
env['TEMPFILE'] = win32.TempFileMunge
示例5: generate
def generate(env):
posix.generate(env)
env['PROGPREFIX'] = ''
env['PROGSUFFIX'] = '.exe'
env['SHLIBPREFIX'] = ''
env['SHLIBSUFFIX'] = '.dll'
env['LIBPREFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX', '$IMPLIBPREFIX' ]
env['LIBSUFFIXES'] = [ '$LIBSUFFIX', '$SHLIBSUFFIX', '$IMPLIBSUFFIX' ]
env['TEMPFILE'] = TempFileMunge
env['TEMPFILEPREFIX'] = '@'
env['MAXLINELENGTH'] = 2048
示例6: generate
def generate(env):
posix.generate(env)
env["PROGPREFIX"] = ""
env["PROGSUFFIX"] = ".exe"
env["SHLIBPREFIX"] = ""
env["SHLIBSUFFIX"] = ".dll"
env["LIBPREFIXES"] = ["$LIBPREFIX", "$SHLIBPREFIX"]
env["LIBSUFFIXES"] = ["$LIBSUFFIX", "$SHLIBSUFFIX"]
env["TEMPFILE"] = TempFileMunge
env["TEMPFILEPREFIX"] = "@"
env["MAXLINELENGTH"] = 2048
示例7: generate
def generate(env):
posix.generate(env)
# /bin/gcc doesn't work on Cygwin because gcc attempts to
# find libexec as /bin/../libexec. So prefer /usr/bin instead.
env['ENV']['PATH'] = '/usr/local/bin:/opt/bin:/usr/bin:/bin'
env['PROGPREFIX'] = ''
env['PROGSUFFIX'] = '.exe'
env['SHLIBPREFIX'] = ''
env['SHLIBSUFFIX'] = '.dll'
env['LIBPREFIXES'] = [ '$LIBPREFIX', '$SHLIBPREFIX' ]
env['LIBSUFFIXES'] = [ '$LIBSUFFIX', '$SHLIBSUFFIX' ]
env['TEMPFILE'] = TempFileMunge
env['TEMPFILEPREFIX'] = '@'
env['MAXLINELENGTH'] = 2048
示例9: generate
def generate(env):
posix.generate(env)
#Based on HP-UX11i: ARG_MAX=2048000 - 3000 for environment expansion
env['MAXLINELENGTH'] = 2045000
示例10: generate
def generate(env):
posix.generate(env)
# Based on AIX 5.2: ARG_MAX=24576 - 3000 for environment expansion
env["MAXLINELENGTH"] = 21576
示例11: generate
def generate(env):
posix.generate(env)
env['SHLIBSUFFIX'] = '.dylib'
env['ENV']['PATH'] = env['ENV']['PATH'] + ':/sw/bin'
示例12: generate
def generate(env):
posix.generate(env)
#Based on sunSparc 8:32bit ARG_MAX=1048320 - 3000 for environment expansion
env['MAXLINELENGTH'] = 1045320
示例13: generate
def generate(env):
posix.generate(env)
env['SHLIBSUFFIX'] = '.dylib'