You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to run my python script(py_binary) from Swift and I ended up having the following setup, which compiles without an issue
swift_library(
name = "Sources",
srcs = ["main.swift"],
visibility = ["//visibility:public"],
data = ["//src/image_gen:main"], # py_binary
)
apple_bundle_version(
name = "CommandLineSwiftVersion",
build_version = "1.0",
)
macos_command_line_application(
name = "CommandLineSwift",
bundle_id = "com.example.command-line-swift",
infoplists = [":Info.plist"],
minimum_os_version = "13.6",
version = ":CommandLineSwiftVersion",
deps = [
":Sources",
],
)
According to docs, py_binary runfiles are supposed to end up in CommandLineSwift's bin folder(transitively trough swift_library), but Somehow py_binary runfiles never end up in there
However, the other way around - works. I can add CommandLineSwift to py_binarydata attribute without any issues. Am I doing smth wrong here? Is there other way to do it?
The text was updated successfully, but these errors were encountered:
I want to run my python script(py_binary) from Swift and I ended up having the following setup, which compiles without an issue
According to docs, py_binary runfiles are supposed to end up in CommandLineSwift's bin folder(transitively trough swift_library), but Somehow py_binary runfiles never end up in there
However, the other way around - works. I can add
CommandLineSwift
topy_binary
data
attribute without any issues. Am I doing smth wrong here? Is there other way to do it?The text was updated successfully, but these errors were encountered: