Skip to content

Commit

Permalink
Package labextension with sdist
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Jakubowski <tom@prospective.dev>
  • Loading branch information
tomjakubowski committed Oct 28, 2024
1 parent f52f6ef commit afa3804
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/perspective-jupyterlab/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ async function build_all() {
);

const psp_dir = `perspective_python-${version}.data`;
await cpy(
["dist/cjs/**/*"],
`../../rust/perspective-python/${psp_dir}/data/share/jupyter/labextensions/@finos/perspective-jupyterlab`
);
const dests = [
`../../rust/perspective-python/perspective/labextension`, // used for sdist
`../../rust/perspective-python/${psp_dir}/data/share/jupyter/labextensions/@finos/perspective-jupyterlab`, // used for wheel
];
for (const dest of dests) {
await cpy(["dist/cjs/**/*"], dest);
}
}

build_all();
1 change: 1 addition & 0 deletions rust/perspective-python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module-name = "perspective"
data = "perspective_python-3.1.2.data"
features = ["pyo3/extension-module"]
include = [
{ path = "perspective/labextension/**/*", format = "sdist" },
{ path = "perspective/*libpsp.so", format = "wheel" },
{ path = "perspective/*libpsp.dll", format = "wheel" },
]
Expand Down

0 comments on commit afa3804

Please sign in to comment.