Skip to content

Commit

Permalink
Update build.jinja
Browse files Browse the repository at this point in the history
  • Loading branch information
mavenlin committed Dec 4, 2023
1 parent 9125526 commit 19ec135
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion maple2jax/libxc/build.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,22 @@ pybind_extension(
visibility = ["//visibility:public"],
)

genrule(
name = "gen_libxc_pyd",
srcs = [":libxc.so"],
outs = ["libxc.pyd"],
cmd = "cp $< $@",
)

py_library(
name = "libxc",
srcs = glob(
["*.py"],
exclude=["gen_build.py", "wrap.py"],
),
data = [":libxc.so"],
data = select({
"@platforms//os:windows": [":gen_libxc_pyd"],
"//conditions:default": [":libxc.so"],
}),
visibility = ["//visibility:public"],
)

0 comments on commit 19ec135

Please sign in to comment.