mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
Python: Remove unused symbols
GitOrigin-RevId: ec2bd2dda3f215a6c318afa70adbccc8627bd586
This commit is contained in:
committed by
intellij-monorepo-bot
parent
58d1b83ea3
commit
fe54db7b3c
@@ -9,24 +9,9 @@ class Python internal constructor(val pyenvDefinition: String,
|
||||
object Pythons {
|
||||
private val allPythons: ArrayList<Python> = ArrayList()
|
||||
|
||||
@Synchronized
|
||||
internal fun createPython(pyenvDefinition: String, name: String, revision: String, packages: List<String>): Python {
|
||||
return Python(pyenvDefinition, name, revision, packages).also {
|
||||
allPythons.add(it)
|
||||
}
|
||||
}
|
||||
|
||||
@Synchronized
|
||||
fun getPythons(): List<Python> {
|
||||
return allPythons.toList()
|
||||
}
|
||||
|
||||
val BlackJobLibTenserFlowPython311 = createPython("3.11.7",
|
||||
"black-joblib-tenserflow",
|
||||
"1",
|
||||
listOf("black == 23.1.0", "joblib", "tensorflow"))
|
||||
val CondaWithPyTorch = createPython("Miniconda3-latest",
|
||||
"conda-pytorch",
|
||||
"1",
|
||||
listOf("pytorch"))
|
||||
}
|
||||
@@ -30,7 +30,6 @@ private val arch: String = System.getProperty("os.arch").lowercase().let { arch
|
||||
|
||||
private const val pyEnvUrl = "https://github.com/pyenv/pyenv/archive/master.zip"
|
||||
private const val pyEnvWinUrl = "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1"
|
||||
private val spaceUrl = "https://jetbrains.team/p/pyqa/packages/files/pythons"
|
||||
private val pipOptions = arrayOf("--trusted-host", "pypi.python.org", "--trusted-host", "pypi.org", "--trusted-host", "files.pythonhosted.org")
|
||||
val Python.directoryName: String
|
||||
get() = "$pyenvDefinition-$name-$revision-$os-$arch"
|
||||
|
||||
Reference in New Issue
Block a user