dolfin.py

来自「利用C」· Python 代码 · 共 33 行

PY
33
字号
#!/usr/bin/env python# -*- coding: utf-8 -*-## Copyright (C) 2006 Simula Research Laboratory# Author: Ola Skavhaug, 脜smund 脴deg氓rdfrom os import systemimport os, sysfrom os.path import sep, joinfrom commonPkgConfigUtils import *def pkgTests(forceCompiler=None, sconsEnv=None, **kwargs):    return True# Generate a pkg-config file for dolfin, put it in the given # directory, if no directory is given, a suitable location is found # using the functionality from commonPkgConfigUtils.# Nothing in kwargs is used, it is included to ensure a consitent # interface for the generatePkgConf function.def generatePkgConf(directory=suitablePkgConfDir(),**kwargs):        print """\nError:\n\nDOLFIN now supplies its own pkg-config file, which we areunable to find! Either copy that file to a directory search by pkg-config, or add the directory where DOLFIN installs the file to your PKG_CONFIG_PATH environment variable. The directory in question is $prefix/lib/pkgconfig, where $prefix is the install prefix for DOLFIN\n\n"""    sys.exit(1)if __name__ == "__main__":    generatePkgConf(directory=".")

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?