예제 #1
0
if (f90compiler != "None"): libraries.append("UsurpF")

import srcs

# extensions =================================================================
listExtensions = []
listExtensions.append(
    Extension('Post.post',
              sources=["Post/post.cpp"]+srcs.cpp_srcs,
              include_dirs=["Post"]+additionalIncludePaths+[numpyIncDir,kcoreIncDir], 
              library_dirs=additionalLibPaths+libraryDirs,
              libraries=libraries+additionalLibs,
              extra_compile_args=Dist.getCppArgs(),
              extra_link_args=Dist.getLinkArgs()
              ) )

# setup ======================================================================
setup(
    name="Post",
    version="2.4",
    description="Post-processing of CFD solutions.",
    author="Onera",
    package_dir={"":"."},
    packages=['Post'],
    ext_modules=listExtensions
    )

# Check PYTHONPATH ===========================================================
Dist.checkPythonPath(); Dist.checkLdLibraryPath()
예제 #2
0
libraries = ["rigidMotion", "kcore"]
from KCore.config import *
(ok, libs, paths) = Dist.checkCppLibs([], additionalLibPaths)
libraryDirs += paths
libraries += libs

# Extensions =================================================================
extensions = [
    Extension('RigidMotion.rigidMotion',
              sources=["RigidMotion/rigidMotion.cpp"],
              include_dirs=["RigidMotion"] + additionalIncludePaths +
              [numpyIncDir, kcoreIncDir],
              library_dirs=additionalLibPaths + libraryDirs,
              libraries=libraries + additionalLibs,
              extra_compile_args=Dist.getCppArgs(),
              extra_link_args=Dist.getLinkArgs())
]

# Setup ======================================================================
setup(name="RigidMotion",
      version="2.9",
      description="Compute/define rigid motion.",
      author="Onera",
      package_dir={"": "."},
      packages=['RigidMotion'],
      ext_modules=extensions)

# Check PYTHONPATH ===========================================================
Dist.checkPythonPath()
Dist.checkLdLibraryPath()