mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-82119 Packaging: Rewrite Conda to use EEL
GitOrigin-RevId: 8329d24191bdc1411775dc8e58a65172a2804788
This commit is contained in:
committed by
intellij-monorepo-bot
parent
693c5014a8
commit
2c3a5a9f7a
+1
-3
@@ -1,7 +1,6 @@
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.python.community.junit5Tests.framework.conda
|
||||
|
||||
import com.intellij.execution.processTools.getResultStdoutStr
|
||||
import com.jetbrains.python.getOrThrow
|
||||
import com.jetbrains.python.psi.LanguageLevel
|
||||
import com.jetbrains.python.sdk.flavors.conda.NewCondaEnvRequest
|
||||
@@ -20,11 +19,10 @@ suspend fun createCondaEnv(
|
||||
existingEnv: PyCondaEnv,
|
||||
pathToCreateNewEnvIn: Path,
|
||||
): PyCondaEnv {
|
||||
val process = PyCondaEnv.createEnv(
|
||||
PyCondaEnv.createEnv(
|
||||
PyCondaCommand(existingEnv.fullCondaPathOnTarget, null),
|
||||
NewCondaEnvRequest.EmptyUnnamedEnv(LanguageLevel.PYTHON311, pathToCreateNewEnvIn.pathString)
|
||||
).getOrThrow()
|
||||
process.getResultStdoutStr().getOrThrow()
|
||||
|
||||
val env = PyCondaEnv(PyCondaEnvIdentity.UnnamedEnv(pathToCreateNewEnvIn.pathString, false), existingEnv.fullCondaPathOnTarget)
|
||||
return env
|
||||
|
||||
Reference in New Issue
Block a user