|
32 | 32 | "appdirs",
|
33 | 33 | "requests",
|
34 | 34 | "jupyter_server",
|
| 35 | + "notebook", |
35 | 36 | ],
|
36 | 37 | packages=find_packages(),
|
37 | 38 | zip_safe=False,
|
|
103 | 104 | ),
|
104 | 105 | ]
|
105 | 106 |
|
106 |
| -package["cmdclass"] = { |
107 |
| - **create_cmdclass("jsdeps", data_files_spec=data_files_spec), |
108 |
| - "jsdeps": combine_commands( |
109 |
| - install_npm(JS_DIR, npm=["yarn"], build_cmd="build:prod"), |
110 |
| - ensure_targets(jstargets), |
111 |
| - ), |
112 |
| -} |
113 |
| - |
114 |
| -# -------------------------------------------------------------------------------------- |
115 |
| -# Build Pth File |
116 |
| -# -------------------------------------------------------------------------------------- |
117 |
| - |
118 |
| -BuildPyBase: type[build_py] = package["cmdclass"]["build_py"] |
119 |
| - |
120 |
| - |
121 |
| -class BuildPy(BuildPyBase): |
122 |
| - """Include the .pth file for this project, in the generated wheel.""" |
123 |
| - |
124 |
| - def run(self): |
125 |
| - super().run() |
126 |
| - pth_file = f"{NAME}.pth" |
127 |
| - self.copy_file( |
128 |
| - str(ROOT_DIR / pth_file), |
129 |
| - str(Path(self.build_lib) / pth_file), |
130 |
| - preserve_mode=0, |
131 |
| - ) |
132 |
| - |
133 |
| - |
134 |
| -package["cmdclass"] = {**package["cmdclass"], "build_py": BuildPy} |
| 107 | +cmdclass = create_cmdclass("jsdeps", data_files_spec=data_files_spec) |
| 108 | +cmdclass["jsdeps"] = combine_commands( |
| 109 | + install_npm(JS_DIR, npm=["yarn"], build_cmd="build:prod"), |
| 110 | + ensure_targets(jstargets), |
| 111 | +) |
| 112 | +package["cmdclass"] = cmdclass |
135 | 113 |
|
136 | 114 | # -----------------------------------------------------------------------------
|
137 | 115 | # Install It
|
|
0 commit comments