Files
openide/python/python-venv/BUILD.bazel
Ilya.Kazakevich 2e14347844 Python: extract python-specific extensions from exec service to simplify API and make it extendable for intepreters.
Use `ExecService` `api.kt` to exec any binary and extensions from `execService.python/api.kt` for python-specific things (i.e helpers)

GitOrigin-RevId: bb217798a9d1ee886c4b12220ec1f66a5ef08336
2025-06-07 22:05:56 +00:00

74 lines
2.4 KiB
Python

### auto-generated section `build intellij.python.community.impl.venv` start
load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources", "jvm_test")
jvm_resources(
name = "community-impl-venv_resources",
files = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_resources(
name = "community-impl-venv_test_resources",
files = glob(["testResources/**/*"]),
strip_prefix = "testResources"
)
jvm_library(
name = "community-impl-venv",
module_name = "intellij.python.community.impl.venv",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True),
deps = [
"@lib//:kotlin-stdlib",
"@lib//:jetbrains-annotations",
"//python/openapi:community",
"//python/python-exec-service:community-execService",
"@lib//:kotlinx-coroutines-core",
"//python/python-sdk:sdk",
"//platform/projectModel-api:projectModel",
"//platform/util",
"//platform/core-api:core",
"//python/python-exec-service/execService.python",
],
runtime_deps = [":community-impl-venv_resources"]
)
jvm_library(
name = "community-impl-venv_test_lib",
visibility = ["//visibility:public"],
srcs = glob(["tests/**/*.kt", "tests/**/*.java"], allow_empty = True),
associates = [":community-impl-venv"],
deps = [
"@lib//:kotlin-stdlib",
"@lib//:jetbrains-annotations",
"//python/openapi:community",
"//python/openapi:community_test_lib",
"//python/python-exec-service:community-execService",
"//python/python-exec-service:community-execService_test_lib",
"@lib//:kotlinx-coroutines-core",
"//python/python-sdk:sdk",
"//python/python-sdk:sdk_test_lib",
"//platform/projectModel-api:projectModel",
"//platform/util",
"//python/junit5Tests-framework:community-junit5Tests-framework_test_lib",
"//platform/testFramework/common",
"//platform/testFramework/junit5",
"//platform/testFramework/junit5:junit5_test_lib",
"@lib//:junit5",
"//platform/ide-core-impl",
"//platform/execution",
"//platform/core-api:core",
"//python/python-exec-service/execService.python",
"//python/python-exec-service/execService.python:execService.python_test_lib",
],
runtime_deps = [
":community-impl-venv_resources",
":community-impl-venv_test_resources",
]
)
jvm_test(
name = "community-impl-venv_test",
runtime_deps = [":community-impl-venv_test_lib"]
)
### auto-generated section `build intellij.python.community.impl.venv` end