@@ -20,7 +20,6 @@ const nativeDependencyChecker = require('node-has-native-dependencies');
20
20
const flat = require ( 'flat' ) ;
21
21
const { argv } = require ( 'yargs' ) ;
22
22
const os = require ( 'os' ) ;
23
- const rmrf = require ( 'rimraf' ) ;
24
23
const typescript = require ( 'typescript' ) ;
25
24
26
25
const tsProject = ts . createProject ( './tsconfig.json' , { typescript } ) ;
@@ -243,100 +242,6 @@ gulp.task('prePublishBundle', gulp.series('webpack', 'renameSourceMaps'));
243
242
gulp . task ( 'checkDependencies' , gulp . series ( 'checkNativeDependencies' ) ) ;
244
243
gulp . task ( 'prePublishNonBundle' , gulp . series ( 'compile' ) ) ;
245
244
246
- gulp . task ( 'installPythonRequirements' , async ( ) => {
247
- let args = [
248
- '-m' ,
249
- 'pip' ,
250
- '--disable-pip-version-check' ,
251
- 'install' ,
252
- '--no-user' ,
253
- '-t' ,
254
- './pythonFiles/lib/python' ,
255
- '--no-cache-dir' ,
256
- '--implementation' ,
257
- 'py' ,
258
- '--no-deps' ,
259
- '--upgrade' ,
260
- '-r' ,
261
- './requirements.txt' ,
262
- ] ;
263
- await spawnAsync ( process . env . CI_PYTHON_PATH || 'python' , args , undefined , true )
264
- . then ( ( ) => true )
265
- . catch ( ( ex ) => {
266
- console . error ( "Failed to install requirements using 'python'" , ex ) ;
267
- return false ;
268
- } ) ;
269
-
270
- args = [
271
- '-m' ,
272
- 'pip' ,
273
- '--disable-pip-version-check' ,
274
- 'install' ,
275
- '--no-user' ,
276
- '-t' ,
277
- './pythonFiles/lib/jedilsp' ,
278
- '--no-cache-dir' ,
279
- '--implementation' ,
280
- 'py' ,
281
- '--no-deps' ,
282
- '--upgrade' ,
283
- '-r' ,
284
- './pythonFiles/jedilsp_requirements/requirements.txt' ,
285
- ] ;
286
- await spawnAsync ( process . env . CI_PYTHON_PATH || 'python' , args , undefined , true )
287
- . then ( ( ) => true )
288
- . catch ( ( ex ) => {
289
- console . error ( "Failed to install Jedi LSP requirements using 'python'" , ex ) ;
290
- return false ;
291
- } ) ;
292
- } ) ;
293
-
294
- // See https://github.com/microsoft/vscode-python/issues/7136
295
- gulp . task ( 'installDebugpy' , async ( ) => {
296
- // Install dependencies needed for 'install_debugpy.py'
297
- const depsArgs = [
298
- '-m' ,
299
- 'pip' ,
300
- '--disable-pip-version-check' ,
301
- 'install' ,
302
- '--no-user' ,
303
- '-t' ,
304
- './pythonFiles/lib/temp' ,
305
- '-r' ,
306
- './build/build-install-requirements.txt' ,
307
- ] ;
308
- await spawnAsync ( process . env . CI_PYTHON_PATH || 'python' , depsArgs , undefined , true )
309
- . then ( ( ) => true )
310
- . catch ( ( ex ) => {
311
- console . error ( "Failed to install dependencies need by 'install_debugpy.py' using 'python'" , ex ) ;
312
- return false ;
313
- } ) ;
314
-
315
- // Install new DEBUGPY with wheels for python
316
- const wheelsArgs = [ './pythonFiles/install_debugpy.py' ] ;
317
- const wheelsEnv = { PYTHONPATH : './pythonFiles/lib/temp' } ;
318
- await spawnAsync ( process . env . CI_PYTHON_PATH || 'python' , wheelsArgs , wheelsEnv , true )
319
- . then ( ( ) => true )
320
- . catch ( ( ex ) => {
321
- console . error ( "Failed to install DEBUGPY wheels using 'python'" , ex ) ;
322
- return false ;
323
- } ) ;
324
-
325
- // Download get-pip.py
326
- const getPipArgs = [ './pythonFiles/download_get_pip.py' ] ;
327
- const getPipEnv = { PYTHONPATH : './pythonFiles/lib/temp' } ;
328
- await spawnAsync ( process . env . CI_PYTHON_PATH || 'python' , getPipArgs , getPipEnv , true )
329
- . then ( ( ) => true )
330
- . catch ( ( ex ) => {
331
- console . error ( "Failed to download get-pip wheels using 'python'" , ex ) ;
332
- return false ;
333
- } ) ;
334
-
335
- rmrf . sync ( './pythonFiles/lib/temp' ) ;
336
- } ) ;
337
-
338
- gulp . task ( 'installPythonLibs' , gulp . series ( 'installPythonRequirements' , 'installDebugpy' ) ) ;
339
-
340
245
function spawnAsync ( command , args , env , rejectOnStdErr = false ) {
341
246
env = env || { } ;
342
247
env = { ...process . env , ...env } ;
0 commit comments