示例#1
0
    def update(self, env):
        """ Update the environment with specific flags """

        env.AppendUnique(CPPPATH=[env['boost_includes']])
        env.AppendUnique(LIBPATH=[env['boost_lib']])
        env.Append(CPPDEFINES='$%s_defines'%(self.name,))
        env.Append(CPPFLAGS='$%s_flags'%(self.name,))

        #boost > 1.43 changed naming scheme for mingw/cygwin.        
        if env['compiler'] == 'mingw' or platform==Cygwin:                
            if not self.__usingEgg: # ---- get version, from user boost or system
                boostLibs = glob.glob(pj(env['boost_lib'],'libboost*'))
                version   = None
                #find versions in there
                for lib in boostLibs:
                    res = regc.search(lib)
                    if res and len(res.groups()):
                        version = res.groups()[0]
                        break                            
            else: #get version, from egg
                from openalea.deploy import get_metainfo
                try:
                    version = get_metainfo("boost", "version")
                except:                
                    version = get_metainfo("boostpython", "version")
                
            periods = version.count(".")
            if periods == 1:
                maj, min = map(int, version.split("."))
                patch = 0
            elif periods == 2:
                maj, min, patch = map(int, version.split("."))
            else:
                raise Exception("Cannot determine the version of boost.")        
            # ---- OK we have the version numbers (maj, min, patch) and string (version)
            
            version = version.replace(".", "_")
                
            if maj >= 1 and min >= 43 :
                boost_name= self.name +".dll" #on Windows mingw/cygwin we now only support boost compilations with --layout=system
            else:
                boost_name= self.name + env['boost_libs_suffix']
        else:
            boost_name= self.name + env['boost_libs_suffix']
        env.AppendUnique(LIBS=[boost_name])
示例#2
0
    def update(self, env):
        """ Update the environment with specific flags """
        if env['WITH_BOOST']:
            env.AppendUnique(CPPPATH=[env['boost_includes']])
            env.AppendUnique(LIBPATH=[env['boost_libpath']])
            env.Append(CPPDEFINES='$%s_defines' % (self.name, ))
            env.Append(CPPFLAGS='$%s_flags' % (self.name, ))

            #boost > 1.43 changed naming scheme for mingw/cygwin.
            if env['compiler'] == 'mingw' or platform == Cygwin:
                if not self.__usingEgg:  # ---- get version, from user boost or system
                    boostLibs = glob.glob(join(env['boost_lib'], 'libboost*'))
                    version = None
                    #find versions in there
                    for lib in boostLibs:
                        res = regc.search(lib)
                        if res and len(res.groups()):
                            version = res.groups()[0]
                            break
                else:  #get version, from egg
                    from openalea.deploy import get_metainfo
                    try:
                        version = get_metainfo("boost", "version")
                    except:
                        version = get_metainfo("boostpython", "version")

                periods = version.count(".")
                if periods == 1:
                    maj, min = list(map(int, version.split(".")))
                    patch = 0
                elif periods == 2:
                    maj, min, patch = list(map(int, version.split(".")))
                else:
                    raise Exception("Cannot determine the version of boost.")
                # ---- OK we have the version numbers (maj, min, patch) and string (version)

                version = version.replace(".", "_")

                if maj >= 1 and min >= 43:
                    boost_name = self.name + ".dll"  #on Windows mingw/cygwin we now only support boost compilations with --layout=system
                else:
                    boost_name = self.name + env['boost_libs_suffix']
            else:
                boost_name = self.name + env['boost_libs_suffix']
            env.AppendUnique(LIBS=[boost_name])
示例#3
0
__revision__ = "$Id$"
from openalea.deploy import get_metainfo


version = get_metainfo('vplants.plantik', 'version')
authors = get_metainfo('vplants.plantik', 'author')




def get_shared_data(file):
    from os.path import join as pj
    from openalea.deploy.shared_data import get_shared_data_path
    import openalea.plantik
    shared_data_path = get_shared_data_path(openalea.plantik.__path__)
    return pj(shared_data_path, file)

from vplants.plantik import biotik
from biotik import *

from vplants.plantik import tools
from tools import *

from vplants.plantik import plants
from plants import *

from vplants.plantik import simulation
from simulation import *
示例#4
0
from openalea.deploy import get_metainfo

version = get_metainfo('openalea.pylab', 'version')
authors = get_metainfo('openalea.pylab', 'author')

import tools
# This file has been generated at Sat Mar  6 21:17:54 2010

from openalea.core import Factory
from openalea.deploy import get_metainfo

version = get_metainfo('openalea.pylab', 'version')
authors = get_metainfo('openalea.pylab', 'author')


__name__ = 'openalea.pylab.mplot3d'

__editable__ = False
__description__ = '3D visualisation nodes related to pylab.mplot3d.'
__license__ = 'CECILL-C'
__url__ = 'http://openalea.gforge.inria.fr/doc/openalea/pylab/doc/_build/html/contents.html'
__alias__ = []
__version__ = version
__authors__ = authors
__institutes__ = 'INRIA/CIRAD'
__icon__ = 'icon.png'


__all__ = [
    'py_pylab_PyLabPlot3D',
    'py_pylab_PyLabContour3D',
    'py_pylab_PyLabContourf3D',

]