bazel-contrib / bazel-contrib/rules_python

Wrapping py_binary

Open
#2,250 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Starlark
Stars
688
Forks
721
Avg merge
14h 49m
Merged PRs (30d)
81

Description

Bazel test for wrapping binaries fails on py_binary with rules_python 0.36.0 on Windows.

To reproduce run `bazel test //src/test/py/bazel:runfiles_test` on Windows (with the test enabled).

Error output:
```
$TEST_TMPDIR defined: output root default is 'c:\b\n444gjid\execroot\_main\_tmp\a2d17f8b6d1ffa17ed8c03a73e21ab9e' and max_idle_secs default is '15'.
Starting local Bazel server and connecting to it...
Computing main repo mapping:
Loading:
Loading: 0 packages loaded
Loading: 0 packages loaded
Analyzing: target //wrapped:wrapped (1 packages loaded, 0 targets configured)
Analyzing: target //wrapped:wrapped (1 packages loaded, 0 targets configured)

Analyzing: target //wrapped:wrapped (52 packages loaded, 300 targets configured)

Analyzing: target //wrapped:wrapped (52 packages loaded, 300 targets configured)

Analyzing: target //wrapped:wrapped (58 packages loaded, 325 targets configured)

INFO: Analyzed target //wrapped:wrapped (61 packages loaded, 3435 targets configured).
[8 / 9] Building Python zip: //:binary; 0s local
INFO: Found 1 target...
Target //wrapped:wrapped up-to-date:
bazel-bin/binary.zip
bazel-bin/binary.exe
INFO: Elapsed time: 17.678s, Critical Path: 7.79s
INFO: 9 processes: 7 internal, 2 local.
INFO: Build completed successfully, 9 total actions
INFO: Running command line: bazel-bin/wrapped/binary.exe
C:/b/n444gjid/execroot/_main/_tmp/a2d17f8b6d1ffa17ed8c03a73e21ab9e/_bazel_b/5ca6k2uw/external/rules_python++python+python_3_11_x86_64-pc-windows-msvc/python.exe: can't open file 'C:\\b\\n444gjid\\execroot\\_main\\_tmp\\a2d17f8b6d1ffa17ed8c03a73e21ab9e\\_bazel_b\\5ca6k2uw\\execroot\\_main\\bazel-out\\x64_windows-fastbuild\\bin\\wrapped\\binary.zip': [Errno 2] No such file or directory
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.