33
44import { inject , injectable , named } from 'inversify' ;
55import { CancellationToken , l10n , Uri , workspace } from 'vscode' ;
6- import { Cancellation } from '../../platform/common/cancellation' ;
6+
77import { STANDARD_OUTPUT_CHANNEL } from '../../platform/common/constants' ;
88import { IFileSystem } from '../../platform/common/platform/types' ;
99import { IProcessServiceFactory } from '../../platform/common/process/types.node' ;
1010import { IExtensionContext , IOutputChannel } from '../../platform/common/types' ;
1111import { DeepnoteToolkitInstallError , DeepnoteVenvCreationError } from '../../platform/errors/deepnoteKernelErrors' ;
1212import { logger } from '../../platform/logging' ;
1313import { PythonEnvironment } from '../../platform/pythonEnvironments/info' ;
14- import {
15- DEEPNOTE_TOOLKIT_VERSION ,
16- DEEPNOTE_TOOLKIT_WHEEL_URL ,
17- IDeepnoteToolkitInstaller ,
18- VenvAndToolkitInstallation
19- } from './types' ;
14+ import { DEEPNOTE_TOOLKIT_VERSION , IDeepnoteToolkitInstaller , VenvAndToolkitInstallation } from './types' ;
15+ import { Cancellation } from '../../platform/common/cancellation' ;
2016
2117/**
2218 * Handles installation of the deepnote-toolkit Python package.
@@ -271,7 +267,7 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
271267 Cancellation . throwIfCanceled ( token ) ;
272268
273269 // Install deepnote-toolkit and ipykernel in venv
274- logger . info ( `Installing deepnote-toolkit and ipykernel in venv from ${ DEEPNOTE_TOOLKIT_WHEEL_URL } ` ) ;
270+ logger . info ( `Installing deepnote-toolkit ( ${ DEEPNOTE_TOOLKIT_VERSION } ) and ipykernel in venv from PyPI ` ) ;
275271 this . outputChannel . appendLine ( l10n . t ( 'Installing deepnote-toolkit and ipykernel...' ) ) ;
276272
277273 const installResult = await venvProcessService . exec (
@@ -281,7 +277,7 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
281277 'pip' ,
282278 'install' ,
283279 '--upgrade' ,
284- `deepnote-toolkit[server] @ ${ DEEPNOTE_TOOLKIT_WHEEL_URL } ` ,
280+ `deepnote-toolkit[server]== ${ DEEPNOTE_TOOLKIT_VERSION } ` ,
285281 'ipykernel'
286282 ] ,
287283 { throwOnStdErr : false }
@@ -319,7 +315,7 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
319315 throw new DeepnoteToolkitInstallError (
320316 venvInterpreter . uri . fsPath ,
321317 venvPath . fsPath ,
322- DEEPNOTE_TOOLKIT_WHEEL_URL ,
318+ DEEPNOTE_TOOLKIT_VERSION ,
323319 installResult . stdout || '' ,
324320 installResult . stderr || 'Package installation completed but verification failed'
325321 ) ;
@@ -337,7 +333,7 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
337333 throw new DeepnoteToolkitInstallError (
338334 baseInterpreter . uri . fsPath ,
339335 venvPath . fsPath ,
340- DEEPNOTE_TOOLKIT_WHEEL_URL ,
336+ DEEPNOTE_TOOLKIT_VERSION ,
341337 '' ,
342338 ex instanceof Error ? ex . message : String ( ex ) ,
343339 ex instanceof Error ? ex : undefined
0 commit comments