Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 3b96040

Browse files
committed
another attempt
1 parent 8a32e05 commit 3b96040

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

tools/fuchsia/dart/vpython3.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python_version: "3.8"
2+
wheel: <
3+
name: "infra/python/wheels/pyyaml-py3"
4+
version: "version:5.3.1"
5+
>

tools/fuchsia/python/python_binary.gni

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ template("python_binary") {
6666
walk_keys = [ "library_info_barrier" ]
6767
}
6868

69+
_vpy_env_target = "${target_name}_vpy_env"
70+
copy(_vpy_env_target) {
71+
sources = [ "vpython3.txt" ]
72+
outputs = [ "$target_out_dir/.vpython3" ]
73+
}
74+
6975
# action(target_name) {
7076
python3_action(target_name) {
7177
forward_variables_from(invoker,
@@ -79,7 +85,10 @@ template("python_binary") {
7985
sources += invoker.sources
8086
}
8187
inputs = [ _library_infos_json ]
82-
deps = [ ":${_library_infos_target}" ]
88+
deps = [
89+
":${_library_infos_target}",
90+
":${_vpy_env_target}",
91+
]
8392

8493
# Output must be a .pyz, so our build knows to use a vendored Python
8594
# interpreter to run them.

0 commit comments

Comments
 (0)