예제 #1
0
(ok, libs, paths) = Dist.checkCppLibs([], additionalLibPaths)
libraryDirs += paths; libraries += libs

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 ===========================================================
예제 #2
0
    (OSMesa, OSMesaIncDir, OSMesaLib) = Dist.checkOSMesa(additionalLibPaths,
                                                         additionalIncludePaths)
    if OSMesa:
        libraries += ["OSMesa"]
        libraryDirs += [OSMesaLib]
        includeDirs += [OSMesaIncDir]
else: OSMesa = False
    
# Extensions =================================================================
import srcs

import KCore.installPath
EXTRA = ['-D__SHADERS__']
if OSMesa: EXTRA += ['-D__MESA__']

cppargs = Dist.getCppArgs()
EXTRA += cppargs

extensions = [
    Extension('CPlot.cplot',
              sources=['CPlot/cplot.cpp']+srcs.cpp_srcs,
              include_dirs=["CPlot"]+additionalIncludePaths+includeDirs,
              library_dirs=additionalLibPaths+libraryDirs,
              libraries=libraries+additionalLibs,
              extra_compile_args=EXTRA,
              extra_link_args=Dist.getLinkArgs()
	)
    ]

# Setup ======================================================================
setup(
예제 #3
0
libraries += libs
(ok, libs, paths) = Dist.checkCppLibs([], additionalLibPaths)
libraryDirs += paths
libraries += libs

# Extensions ==================================================================
import srcs
listExtensions = []
listExtensions.append(
    Extension('Converter.converter',
              sources=['Converter/converter.cpp'] + srcs.cpp_srcs,
              include_dirs=["Converter"] + additionalIncludePaths +
              includeDirs,
              library_dirs=additionalLibPaths + libraryDirs,
              libraries=libraries + additionalLibs,
              extra_compile_args=Dist.getCppArgs() + ADDITIONALCPPFLAGS,
              extra_link_args=Dist.getLinkArgs()))

# setup ======================================================================
setup(name="Converter",
      version="2.4",
      description="Converter for *Cassiopee* modules.",
      author="Onera",
      package_dir={"": "."},
      packages=['Converter'],
      ext_modules=listExtensions)

# Check PYTHONPATH ===========================================================
Dist.checkPythonPath()
Dist.checkLdLibraryPath()
예제 #4
0
# Test if MPEG exists =========================================================
(mpeg, mpegIncDir, mpegLib) = Dist.checkMpeg(additionalLibPaths,
                                             additionalIncludePaths)
if mpeg:
    libraries += ["avcodec", "avutil"]
    libraryDirs += [mpegLib]
    includeDirs += [mpegIncDir]

libraryDirs += [kcoreLibDir]

# Extensions =================================================================
EXTRA = ['-D__SHADERS__']
if OSMesa: EXTRA += ['-D__MESA__']

EXTRA += Dist.getCppArgs()

extensions = [
    Extension('CPlot.cplot',
              sources=['CPlot/cplot.cpp'],
              include_dirs=["CPlot"] + additionalIncludePaths + includeDirs,
              library_dirs=additionalLibPaths + libraryDirs,
              libraries=libraries + additionalLibs,
              extra_compile_args=EXTRA,
              extra_link_args=Dist.getLinkArgs())
]

# Setup ======================================================================
setup(name="CPlot",
      version="2.9",
      description="A plotter for *Cassiopee* Modules.",