当前位置: 首页>>代码示例>>Python>>正文


Python posix.generate函数代码示例

本文整理汇总了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()
开发者ID:Andrey-VI,项目名称:mapnik,代码行数:27,代码来源:darwin.py

示例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'
开发者ID:Distrotech,项目名称:scons,代码行数:8,代码来源:sunos.py

示例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"
开发者ID:kanbang,项目名称:Colt,代码行数:8,代码来源:sunos.py

示例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
开发者ID:scanlime,项目名称:picogui,代码行数:10,代码来源:cygwin.py

示例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
开发者ID:Distrotech,项目名称:scons,代码行数:12,代码来源:cygwin.py

示例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
开发者ID:billrobertson42,项目名称:therubyracer,代码行数:12,代码来源:cygwin.py

示例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
开发者ID:GymWenFLL,项目名称:tpp_libs,代码行数:15,代码来源:cygwin.py

示例8: generate

def generate(env):
    posix.generate(env)
开发者ID:rdadolf,项目名称:msms,代码行数:2,代码来源:irix.py

示例9: generate

def generate(env):
    posix.generate(env)
    #Based on HP-UX11i: ARG_MAX=2048000 - 3000 for environment expansion
    env['MAXLINELENGTH']  = 2045000
开发者ID:Acpharis,项目名称:protein_prep,代码行数:4,代码来源:hpux.py

示例10: generate

def generate(env):
    posix.generate(env)
    # Based on AIX 5.2: ARG_MAX=24576 - 3000 for environment expansion
    env["MAXLINELENGTH"] = 21576
开发者ID:bleepbloop,项目名称:Pivy,代码行数:4,代码来源:aix.py

示例11: generate

def generate(env):
    posix.generate(env)
    env['SHLIBSUFFIX'] = '.dylib'
    env['ENV']['PATH'] = env['ENV']['PATH'] + ':/sw/bin'
开发者ID:acmorrow,项目名称:scons-multi,代码行数:4,代码来源:darwin.py

示例12: generate

def generate(env):
    posix.generate(env)
    #Based on sunSparc 8:32bit   ARG_MAX=1048320 - 3000 for environment expansion
    env['MAXLINELENGTH']  = 1045320
开发者ID:puring0815,项目名称:OpenKore,代码行数:4,代码来源:sunos.py

示例13: generate

def generate(env):
    posix.generate(env)
    env['SHLIBSUFFIX'] = '.dylib'
开发者ID:puring0815,项目名称:OpenKore,代码行数:3,代码来源:darwin.py


注:本文中的posix.generate函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。