Exemplo n.º 1
0
 def pipInstallDependency(self, dependencies):
     from mapclient.view.managers.plugins.dependencyinstallation import InstallDependencies
     self.installer = InstallDependencies(dependencies, get_virtualenv_directory())
     self.installer.show()
     unsuccessful_installs = self.installer.run()
     self.installer.close()
     if list(unsuccessful_installs.keys()):
         QtWidgets.QMessageBox.critical(self, 'Failed Installation',
                                        'One or more of the required dependencies could not be installed.'
                                        '\nPlease refer to the program logs for more information.',
                                        QtWidgets.QMessageBox.Ok)
     return unsuccessful_installs
Exemplo n.º 2
0
    def getMissingDependencies(self, dependencies):
        """
        Determine which dependencies are missing from the given dependencies list.
        """
        virtenv_dir = get_virtualenv_directory()

        virtenv_exists = os.path.exists(os.path.join(virtenv_dir, 'bin'))
        required_dependencies = []
        if not virtenv_exists:
            if self.setupVEQuery():
                if self.setupMAPClientVirtEnv(virtenv_dir):
                    required_dependencies = self.getRequiredDependencies(dependencies)
        else:
            required_dependencies = self.getRequiredDependencies(dependencies)
        return required_dependencies
Exemplo n.º 3
0
 def __init__(self):
     # Set default values
     self._options = {
         SHOW_STEP_NAMES: True,
         DONT_CREATE_VIRTUAL_ENV: False,
         CHECK_TOOLS_ON_STARTUP: True,
         USE_EXTERNAL_GIT: False,
         USE_EXTERNAL_RCC: False,
         USE_EXTERNAL_UIC: False,
         VIRTUAL_ENV_PATH: get_virtualenv_directory(),
         GIT_EXE: which('git'),
         PYSIDE_RCC_EXE: INTERNAL_EXE,
         PYSIDE_UIC_EXE: INTERNAL_EXE,
         PREVIOUS_PW_WRITE_STEP_LOCATION: '',
         PREVIOUS_PW_ICON_LOCATION: '',
         INTERNAL_WORKFLOWS_AVAILABLE: False,
         INTERNAL_WORKFLOW_DIR: UNSET_FLAG,
         PREVIOUS_WORKFLOW: UNSET_FLAG,
         AUTOLOAD_PREVIOUS_WORKFLOW: True,
     }