How to use the crossenv.__init__.CrossEnvBuilder function in crossenv

To help you get started, we’ve selected a few crossenv examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github benfogle / crossenv / crossenv / __init__.py View on Github external
if args.verbose == 1:
        level = logging.INFO
    elif args.verbose > 1:
        level = logging.DEBUG
    else:
        level = logging.WARNING
    logging.basicConfig(level=level, format='%(levelname)s: %(message)s')

    try:
        if args.without_pip:
            args.without_cross_pip = True
        env = parse_env_vars(args.env)
        config_vars = parse_config_vars(args.config_var)

        builder = CrossEnvBuilder(host_python=args.HOST_PYTHON,
                cross_prefix=args.cross_prefix,
                build_system_site_packages=args.system_site_packages,
                clear=args.clear,
                extra_env_vars=env,
                with_cross_pip=not args.without_cross_pip,
                with_build_pip=not args.without_pip,
                host_sysroot=args.sysroot,
                host_cc=args.cc,
                host_cxx=args.cxx,
                host_ar=args.ar,
                host_relativize=args.relative_toolchain,
                host_config_vars = config_vars,
                )
        for env_dir in args.ENV_DIR:
            builder.create(env_dir)
    except Exception as e: