Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c0e5613

Browse filesBrowse files
committed
one more time
1 parent b42bbec commit c0e5613
Copy full SHA for c0e5613

File tree

3 files changed

+8
-2
lines changed
Filter options

3 files changed

+8
-2
lines changed

‎MANIFEST.in

Copy file name to clipboardExpand all lines: MANIFEST.in
+1Lines changed: 1 addition & 0 deletions
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

Copy file name to clipboardExpand all lines: reactpy_jupyter/__init__.py
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: setup.py
+6-1Lines changed: 6 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.