Skip to content

Commit c0e5613

Browse files
committed
one more time
1 parent b42bbec commit c0e5613

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ graft jupyter-config
33

44
include LICENSE
55
include pyproject.toml
6+
include reactpy_jupyter.pth

reactpy_jupyter/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .monkey_patch import execute_patch
1111
from .widget_component import from_widget
1212

13-
__version__ = "0.9.4" # DO NOT MODIFY
13+
__version__ = "0.9.5" # DO NOT MODIFY
1414

1515
__all__ = (
1616
"from_widget",

setup.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,14 @@ def build_javascript_first(cmd: Command):
162162

163163

164164
def build_with_pth_file(cmd: Command):
165+
build_lib = getattr(cmd, "build_lib", None) or getattr(cmd, "dist_dir", None)
166+
if build_lib is None:
167+
raise ValueError("Cannot find build_lib or dist_dir")
168+
165169
pth_filename = f"{NAME}.pth"
166170
source_pth_file = ROOT_DIR / pth_filename
167-
cmd.copy_file(str(source_pth_file), pth_filename)
171+
target_pth_file = Path(build_lib, pth_filename)
172+
cmd.copy_file(str(source_pth_file), str(target_pth_file))
168173

169174

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

0 commit comments

Comments
 (0)