configure.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:anonymine 作者: oskar-skog 项目源码 文件源码
def find_INSTALL(Makefile, flags):
    '''
    See the doc-string for find_prefix as well.

    Sets Makefile['INSTALL'] if needed.

    $(INSTALL) is normally "install", but on Solares it needs to be
    "/usr/ucb/install".
    '''
    if 'INSTALL' not in Makefile:
        trywith = [
            '/usr/ucb/install'
        ]
        for install in trywith:
            try:
                os.stat(install)
            except:
                continue
            if flags['v']:
                sys.stdout.write('Using "' + install + '" as `install`\n.')
            Makefile['INSTALL'] = install
            return False
        Makefile['INSTALL'] = 'install'
        return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号