public PipPackageManager( IPythonInterpreterFactory factory, PipPackageManagerCommands commands, int priority, ICondaLocatorProvider condaLocatorProvider ) { _packages = new List <PackageSpec>(); _pipListHasFormatOption = true; if (factory == null) { throw new ArgumentNullException(nameof(factory)); } if (!File.Exists(factory.Configuration?.InterpreterPath)) { throw new NotSupportedException(); } _factory = factory; _commands = commands ?? new PipPackageManagerCommands(); Priority = priority; _condaLocatorProvider = condaLocatorProvider; _cache = PipPackageCache.GetCache(); }
public CondaEnvironmentFactoryProvider( [Import] CPythonInterpreterFactoryProvider globalProvider, [Import] ICondaLocatorProvider condaLocatorProvider, [Import("Microsoft.VisualStudioTools.MockVsTests.IsMockVs", AllowDefault = true)] object isMockVs = null ) : this(globalProvider, condaLocatorProvider, isMockVs == null) { }
public CPythonPipPackageManagerProvider( [Import] ICondaLocatorProvider condaLocatorProvider ) { _condaLocatorProvider = condaLocatorProvider; _packageManagerMap = new Dictionary <IPythonInterpreterFactory, IPackageManager>(); }
public CondaEnvironmentFactoryProvider( CPythonInterpreterFactoryProvider globalProvider, ICondaLocatorProvider condaLocatorProvider, bool watchFileSystem, string userProfileFolder = null) { _watchFileSystem = watchFileSystem; _globalProvider = globalProvider; _condaLocatorProvider = condaLocatorProvider; _userProfileFolder = userProfileFolder; }
public CPythonPipPackageManagerProvider( [Import] ICondaLocatorProvider condaLocatorProvider ) { _condaLocatorProvider = condaLocatorProvider; }