Ejemplo n.º 1
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan

    if args.repo == "pypi":
        pypi.main(args, parser)
    elif args.repo == "cpan":
        cpan.main(args, parser)
Ejemplo n.º 2
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan
    from conda.lock import Locked
    from conda_build.config import croot

    with Locked(croot):
        if args.repo == "pypi":
            pypi.main(args, parser)
        elif args.repo == "cpan":
            cpan.main(args, parser)
Ejemplo n.º 3
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan
    from conda.lock import Locked
    from conda_build.config import croot

    with Locked(croot):
        if args.repo == "pypi":
            pypi.main(args, parser)
        elif args.repo == "cpan":
            cpan.main(args, parser)
Ejemplo n.º 4
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan
    import conda_build.cran as cran
    from conda.lock import Locked
    from conda_build.config import config

    if not args.repo:
        parser.print_help()
    with Locked(config.croot):
        if args.repo == "pypi":
            pypi.main(args, parser)
        elif args.repo == "cpan":
            cpan.main(args, parser)
        elif args.repo == 'cran':
            cran.main(args, parser)
Ejemplo n.º 5
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan
    import conda_build.cran as cran
    from conda.lock import Locked
    from conda_build.config import config

    if not args.repo:
        parser.print_help()
    with Locked(config.croot):
        if args.repo == "pypi":
            pypi.main(args, parser)
        elif args.repo == "cpan":
            cpan.main(args, parser)
        elif args.repo == 'cran':
            cran.main(args, parser)
Ejemplo n.º 6
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan
    import conda_build.cran as cran
    import conda_build.luarocks as luarocks
    from conda.lock import Locked
    from conda_build.config import config

    if not args.repo:
        parser.print_help()
    if not os.path.isdir(config.croot):
        os.makedirs(config.croot)
    with Locked(config.croot):
        if args.repo == "pypi":
            pypi.main(args, parser)
        elif args.repo == "cpan":
            cpan.main(args, parser)
        elif args.repo == 'cran':
            cran.main(args, parser)
        elif args.repo == 'luarocks':
            luarocks.main(args, parser)
Ejemplo n.º 7
0
def execute(args, parser):
    import conda_build.pypi as pypi
    import conda_build.cpan as cpan
    import conda_build.cran as cran
    import conda_build.luarocks as luarocks
    from conda.lock import Locked
    from conda_build.config import config

    if not args.repo:
        parser.print_help()
    if not os.path.isdir(config.croot):
        os.makedirs(config.croot)
    with Locked(config.croot):
        if args.repo == "pypi":
            pypi.main(args, parser)
        elif args.repo == "cpan":
            cpan.main(args, parser)
        elif args.repo == 'cran':
            cran.main(args, parser)
        elif args.repo == 'luarocks':
            luarocks.main(args, parser)