Пример #1
0
    def install_dependencies_by_package_names(self, npm, package_names, copy_local_dependencies=False):
        import datetime
        start = datetime.datetime.now()
        logging.info('START INSTALL: %s', start)

        configs_to_install = []
        for package_config in self.get_configs(package_names=package_names):
            configs_to_install.append(package_config)
        installer = TopologicalInstaller(npm, self._package_map, configs_to_install, copy_local_dependencies)
        installer.install()

        end = datetime.datetime.now()
        logging.info('FINISH INSTALL: %s', end)
        logging.info('PackageManager.install() took %s seconds.', (end - start).seconds)
Пример #2
0
    def install_dependencies_by_package_names(self, npm, package_names, copy_local_dependencies=False):
        import datetime
        start = datetime.datetime.now()
        logging.info('START INSTALL: %s', start)

        configs_to_install = []
        for package_config in self.get_configs(package_names=package_names):
            configs_to_install.append(package_config)
        installer = TopologicalInstaller(npm, self._package_map, configs_to_install, copy_local_dependencies)
        installer.install()

        end = datetime.datetime.now()
        logging.info('FINISH INSTALL: %s', end)
        logging.info('PackageManager.install() took %s seconds.', (end - start).seconds)
Пример #3
0
    def install_dependencies(self, npm, include_packages_that_depend_on_atom=True):
        import datetime
        start = datetime.datetime.now()
        logging.info('START INSTALL: %s', start)

        configs_to_install = []
        for package_config in self.get_configs(include_packages_that_depend_on_atom):
            configs_to_install.append(package_config)
        installer = TopologicalInstaller(npm, self._package_map, configs_to_install)
        installer.install()

        end = datetime.datetime.now()
        logging.info('FINISH INSTALL: %s', end)
        logging.info('PackageManager.install() took %s seconds.', (end - start).seconds)
Пример #4
0
    def install_dependencies(self, npm, include_packages_that_depend_on_atom=True):
        import datetime

        start = datetime.datetime.now()
        logging.info("START INSTALL: %s", start)

        configs_to_install = []
        for package_config in self.get_configs(include_packages_that_depend_on_atom):
            configs_to_install.append(package_config)
        installer = TopologicalInstaller(npm, self._package_map, configs_to_install)
        installer.install()

        end = datetime.datetime.now()
        logging.info("FINISH INSTALL: %s", end)
        logging.info("PackageManager.install() took %s seconds.", (end - start).seconds)
Пример #5
0
    def install_dependencies(self, npm, include_packages_that_depend_on_atom=True,
                             exclude_windows_incompatible_packages=False):
        import datetime
        start = datetime.datetime.now()
        logging.info('START INSTALL: %s', start)

        configs_to_install = []
        for package_config in self.get_configs(
                include_packages_that_depend_on_atom=include_packages_that_depend_on_atom,
                exclude_windows_incompatible_packages=exclude_windows_incompatible_packages):
            configs_to_install.append(package_config)
        installer = TopologicalInstaller(npm, self._package_map, configs_to_install)
        installer.install()

        end = datetime.datetime.now()
        logging.info('FINISH INSTALL: %s', end)
        logging.info('PackageManager.install() took %s seconds.', (end - start).seconds)