Did I find the right examples for you? yes no

All Samples(82)  |  Call(75)  |  Derive(0)  |  Import(7)

        def main(initial_args=None):
    if initial_args is None:
        initial_args = sys.argv[1:]

    autocomplete()

    try:
        cmd_name, cmd_args = parseopts(initial_args)
    except PipError:
        e = sys.exc_info()[1]
        sys.stderr.write("ERROR: %s" % e)
        sys.stderr.write(os.linesep)
        sys.exit(1)

    command = commands[cmd_name]()
    return command.main(cmd_args)
        


src/p/e/peep-1.1/peep.py   peep(Download)
def run_pip(initial_args):
    """Delegate to pip the given args (starting with the subcommand), and raise
    ``PipException`` if something goes wrong."""
    status_code = pip.main(initial_args=initial_args)
 
        else:
            # Fall through to top-level pip main() for everything else:
            return pip.main()
    except PipException as exc:
        return exc.error_code

src/d/x/dxr-HEAD/peep.py   dxr(Download)
def run_pip(initial_args):
    """Delegate to pip the given args (starting with the subcommand), and raise
    ``PipException`` if something goes wrong."""
    status_code = pip.main(initial_args=initial_args)
 
        else:
            # Fall through to top-level pip main() for everything else:
            return pip.main()
    except PipException as exc:
        return exc.error_code

src/p/e/peep-HEAD/peep.py   peep(Download)
def run_pip(initial_args):
    """Delegate to pip the given args (starting with the subcommand), and raise
    ``PipException`` if something goes wrong."""
    status_code = pip.main(initial_args=initial_args)
 
        else:
            # Fall through to top-level pip main() for everything else:
            return pip.main()
    except PipException as exc:
        return exc.error_code

src/a/i/airy-0.1.3/airy/core/ve.py   airy(Download)
            if update_ve or envreqs < envspec:
                import pip
                pip.main(initial_args=['install', '-r', REQUIREMENTS, '--upgrade'])
                file(VE_TIMESTAMP, 'w').close()
            sys.exit(0)

src/a/i/airy-HEAD/airy/core/ve.py   airy(Download)
            if update_ve or envreqs < envspec:
                import pip
                pip.main(initial_args=['install', '-r', REQUIREMENTS, '--upgrade'])
                file(VE_TIMESTAMP, 'w').close()
            sys.exit(0)

src/s/a/sarpaminfohub-HEAD/django/sarpaminfohub/manage.py   sarpaminfohub(Download)
        if update_ve or envreqs < envspec:
            import pip
            pip.main(initial_args=['install', '-r', REQUIREMENTS])
            file(VE_TIMESTAMP, 'w').close()
        sys.exit(0)

src/y/h/yhat-0.7.5/yhat/project.py   yhat(Download)
        for req in reqs:
            pip_args.append(req)
        pip.main(initial_args=pip_args)
    except:
        print "%s not found!" % reqs_filepath

src/m/a/mantis2xml-1.3/setup.py   mantis2xml(Download)
    for req in requirements:
        pip_args.append( req )
    pip.main(initial_args = pip_args)
 
try:

src/d/i/distcontrib-migrate-0.1.1/setup.py   distcontrib-migrate(Download)

src/n/i/ninja-ide-HEAD/ninja_ide/core/encapsulated_env/nenvironment.py   ninja-ide(Download)
 
###############################################################################
from pip import main as pipmain
from pip.backwardcompat import xmlrpclib
from pip.util import get_installed_distributions
        """
        pkg_string = "%s==%s" % (self.name, self.version)
        pipmain(["install", "-q", pkg_string])
        self.emit(SIGNAL("pluginInstalled(PyQt_PyObject)"), self)
 
    @make_async
    def reinstall(self):
        pipmain(["install", "-q", "--force-reinstall", self.name])
    def upgrade(self):
        pipmain(["install", "-q", "--ugprade", self.name])
        self.emit(SIGNAL("pluginInstalled(PyQt_PyObject)"), self)
 
    @make_async
    def remove(self):
        pipmain(["uninstall", "-q", "-y", self.name])

  1 | 2 | 3 | 4 | 5 | 6  Next