Beispiel #1
0
    def configure(self):
        self.helper('./autogen')

        arch         = self.arch
        installdir   = self.env['INSTALL_DIR']
        prefix       = installdir
        config_file  = P.join(self.workdir, 'config.options')
        write_vw_config(prefix, installdir, arch, config_file)
        super(visionworkbench, self).configure()
Beispiel #2
0
    def configure(self):
        self.helper('./autogen')

        arch         = self.arch
        installdir   = self.env['INSTALL_DIR']
        prefix       = installdir
        config_file  = P.join(self.workdir, 'config.options')
        write_vw_config(prefix, installdir, arch, config_file)
        fix_install_paths(installdir, arch) # this is needed for Mac for libgeotiff
        super(visionworkbench, self).configure()
Beispiel #3
0
        os.makedirs(installdir)
    if not (P.isdir(installdir)):
        usage('Invalid installdir %s (not a directory)' % installdir, code)
    logging.basicConfig(level=opt.loglevel)

    if not opt.skip_extraction:
        print('Extracting tarball')
        run('tar', 'xf', tarball, '-C', installdir, '--strip-components', '1')

    arch = get_platform()
    fix_install_paths(installdir, arch)

    # Replace /home/user with $HOME, looks nicer in the output
    vardir = installdir
    r = re.compile('^' + os.environ["HOME"] + '(.*?)$')
    m = r.search(vardir)
    if m:
        vardir = '$HOME' + m.group(1)

    prefix = '$PWD/build'
    config_file = P.join(installdir, 'config.options.vw')
    write_vw_config(prefix, vardir, arch, config_file)

    use_env_flags = False
    prefix = '$PWD/build'
    vw_build = '$HOME/projects/visionworkbench/build'
    if 'VisionWorkbench' not in tarball:
        config_file = P.join(installdir, 'config.options.asp')
        write_asp_config(use_env_flags, prefix, vardir, vw_build, arch, geoid,
                         config_file)
    if not (P.isdir(installdir)):
        usage('Invalid installdir %s (not a directory)' % installdir, code)
    logging.basicConfig(level=opt.loglevel)

    if not opt.skip_extraction:
        print('Extracting tarball')
        run('tar', 'xf', tarball, '-C', installdir, '--strip-components', '1')

    arch = get_platform()
    fix_install_paths(installdir, arch)

    # Replace /home/user with $HOME, looks nicer in the output
    vardir = installdir
    r = re.compile('^' + os.environ["HOME"] + '(.*?)$')
    m = r.search(vardir)
    if m:
        vardir = '$HOME' + m.group(1)
        
    prefix       = '$PWD/build'
    config_file  = P.join(installdir, 'config.options.vw')
    write_vw_config(prefix, vardir, arch, config_file)

    use_env_flags = False
    prefix       = '$PWD/build'
    vw_build     = '$HOME/projects/visionworkbench/build'
    if 'VisionWorkbench' not in tarball:
        config_file  = P.join(installdir, 'config.options.asp')
        write_asp_config(use_env_flags,
                         prefix, vardir, vw_build, arch, geoid, config_file)