コード例 #1
0
ファイル: PipPackageManager.cs プロジェクト: int19h/PTVS
        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();
        }
コード例 #2
0
 public CondaEnvironmentFactoryProvider(
     [Import] CPythonInterpreterFactoryProvider globalProvider,
     [Import] ICondaLocatorProvider condaLocatorProvider,
     [Import("Microsoft.VisualStudioTools.MockVsTests.IsMockVs", AllowDefault = true)] object isMockVs = null
     ) : this(globalProvider, condaLocatorProvider, isMockVs == null)
 {
 }
コード例 #3
0
 public CPythonPipPackageManagerProvider(
     [Import] ICondaLocatorProvider condaLocatorProvider
     )
 {
     _condaLocatorProvider = condaLocatorProvider;
     _packageManagerMap    = new Dictionary <IPythonInterpreterFactory, IPackageManager>();
 }
コード例 #4
0
 public CondaEnvironmentFactoryProvider(
     CPythonInterpreterFactoryProvider globalProvider,
     ICondaLocatorProvider condaLocatorProvider,
     bool watchFileSystem,
     string userProfileFolder = null)
 {
     _watchFileSystem      = watchFileSystem;
     _globalProvider       = globalProvider;
     _condaLocatorProvider = condaLocatorProvider;
     _userProfileFolder    = userProfileFolder;
 }
コード例 #5
0
 public CPythonPipPackageManagerProvider(
     [Import] ICondaLocatorProvider condaLocatorProvider
     )
 {
     _condaLocatorProvider = condaLocatorProvider;
 }