Skip to content

Commit

Permalink
don't run build hook stuff when building wheel because it already did…
Browse files Browse the repository at this point in the history
… that on the xdist stage i guess
  • Loading branch information
DetachHead committed Jun 26, 2024
1 parent af021b9 commit 1baf3ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdm_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ def generate_docstubs():
class Hook(BuildHookInterface):
@override
def pdm_build_update_files(self, context: Context, files: dict[str, Path]):
if context.target == "wheel":
return
npm_package_dir = Path("packages/pyright")
pypi_package_dir = Path("basedpyright")
dist_dir = Path("dist")
npm_script_paths = cast(PackageJson, loads((npm_package_dir / "package.json").read_text()))[
"bin"
].values()

generate_docstubs()

run_npm("ci")
Expand Down

0 comments on commit 1baf3ec

Please sign in to comment.