setup.py
def copy_pkg(self, pkg, src_only=False):
        "Install boost deps from the third_party directory"

        if getattr(self, 'no_' + pkg) is None:
            print('Copying', pkg, 'dependencies')
            to_copy = pkg,
        else:
            return

        src = os.path.join('third_party', *to_copy)

        # copy to the build tree
        if not src_only:
            target = os.path.join(self.build_lib, 'pythran', *to_copy)
            shutil.rmtree(target, True)
            shutil.copytree(src, target)

        # copy them to the source tree too, needed for sdist
        target = os.path.join('pythran', *to_copy)
        shutil.rmtree(target, True)
        shutil.copytree(src, target)
Install boost deps from the third_party directory
Install boost deps from the third_party directory
Install boost deps from the third_party directory
def copy_pkg(self, pkg, src_only=False):
        if getattr(self, 'no_' + pkg) is None:
            print('Copying', pkg, 'dependencies')
            to_copy = pkg,
        else:
            return
        src = os.path.join('third_party', *to_copy)
        if not src_only:
            target = os.path.join(self.build_lib, 'pythran', *to_copy)
            shutil.rmtree(target, True)
            shutil.copytree(src, target)
        target = os.path.join('pythran', *to_copy)
        shutil.rmtree(target, True)
        shutil.copytree(src, target)
def copy_pkg ( self , pkg , src_only = False ) : if getattr ( self , 'no_' + pkg ) is None : print ( 'Copying' , pkg , 'dependencies' ) to_copy = pkg , else : return src = os . path . join ( 'third_party' , * to_copy ) if not src_only : target = os . path . join ( self . build_lib , 'pythran' , * to_copy ) shutil . rmtree ( target , True ) shutil . copytree ( src , target ) target = os . path . join ( 'pythran' , * to_copy ) shutil . rmtree ( target , True ) shutil . copytree ( src , target )
Install boost deps from the third_party directory
Install boost deps from the third_party directory
"Install boost deps from the third_party directory" # copy to the build tree # copy them to the source tree too, needed for sdist
self
pkg
src_only