Skip to content

Commit

Permalink
one more time
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed May 19, 2023
1 parent b42bbec commit c0e5613
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ graft jupyter-config

include LICENSE
include pyproject.toml
include reactpy_jupyter.pth
2 changes: 1 addition & 1 deletion reactpy_jupyter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .monkey_patch import execute_patch
from .widget_component import from_widget

__version__ = "0.9.4" # DO NOT MODIFY
__version__ = "0.9.5" # DO NOT MODIFY

__all__ = (
"from_widget",
Expand Down
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,14 @@ def build_javascript_first(cmd: Command):


def build_with_pth_file(cmd: Command):
build_lib = getattr(cmd, "build_lib", None) or getattr(cmd, "dist_dir", None)
if build_lib is None:
raise ValueError("Cannot find build_lib or dist_dir")

pth_filename = f"{NAME}.pth"
source_pth_file = ROOT_DIR / pth_filename
cmd.copy_file(str(source_pth_file), pth_filename)
target_pth_file = Path(build_lib, pth_filename)
cmd.copy_file(str(source_pth_file), str(target_pth_file))


def add_to_cmd(cls: Command, functions: list[Callable[[Command], None]]) -> Command:
Expand Down

0 comments on commit c0e5613

Please sign in to comment.