Skip to content

Commit

Permalink
Make copy resources default for python_bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
valadez-abel committed Aug 7, 2024
1 parent 11bb0f5 commit 3ba89d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
24 changes: 3 additions & 21 deletions prelude/cxx/tools/BUCK.v2
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,15 @@ prelude.command_alias(
visibility = ["PUBLIC"],
)

prelude.export_file(
name = "make_comp_db.py",
src = "make_comp_db.py",
visibility = ["PUBLIC"],
)

prelude.python_bootstrap_binary(
name = "make_comp_db",
main = ":make_comp_db.py",
visibility = ["PUBLIC"],
)

prelude.export_file(
name = "dep_file_processor.py",
src = "dep_file_processor.py",
main = "make_comp_db.py",
visibility = ["PUBLIC"],
)

prelude.python_bootstrap_binary(
name = "dep_file_processor",
main = ":dep_file_processor.py",
main = "dep_file_processor.py",
visibility = ["PUBLIC"],
deps = [
":dep_file_processors",
Expand All @@ -60,15 +48,9 @@ prelude.python_bootstrap_library(
visibility = ["PUBLIC"],
)

prelude.export_file(
name = "linker_wrapper.py",
src = "linker_wrapper.py",
visibility = ["PUBLIC"],
)

prelude.python_bootstrap_binary(
name = "linker_wrapper",
main = ":linker_wrapper.py",
main = "linker_wrapper.py",
visibility = ["PUBLIC"],
)

Expand Down
10 changes: 2 additions & 8 deletions prelude/python_bootstrap/tools/BUCK.v2
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,10 @@ source_listing()

prelude = native

prelude.export_file(
name = "win_python_wrapper.bat",
src = "win_python_wrapper.bat",
target_compatible_with = ["config//os:windows"],
visibility = ["PUBLIC"],
)

prelude.sh_binary(
name = "win_python_wrapper",
main = ":win_python_wrapper.bat",
main = "win_python_wrapper.bat",
copy_resources = True,
target_compatible_with = ["config//os:windows"],
visibility = ["PUBLIC"],
)
2 changes: 1 addition & 1 deletion prelude/rules_impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ inlined_extra_attributes = {
"python_bootstrap_binary": {
"deps": attrs.list(attrs.dep(providers = [PythonBootstrapSources]), default = []),
"main": attrs.source(),
"copy_deps": attrs.bool(default = False),
"copy_deps": attrs.bool(default = True),
"_exec_os_type": buck.exec_os_type_arg(),
"_python_bootstrap_toolchain": toolchains_common.python_bootstrap(),
"_win_python_wrapper": attrs.default_only(
Expand Down

0 comments on commit 3ba89d1

Please sign in to comment.