rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Wrapping py_binary

Open comius opened this issue 1 year ago • 1 comments

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

comius avatar Sep 25 '24 18:09 comius

Added help_wanted since it is Windows.

aignas avatar Sep 26 '24 10:09 aignas