|
22 | 22 |
|
23 | 23 | HERE = Path(__file__).parent.resolve()
|
24 | 24 | name = 'pythreejs'
|
25 |
| -lab_path = (HERE / name / "labextension") |
| 25 | +py_path = (HERE / name) |
| 26 | +js_path = (HERE / "js") |
| 27 | +lab_path = (py_path / "labextension") |
26 | 28 |
|
27 | 29 | version = get_version(HERE / name / '_version.py')
|
28 | 30 |
|
|
33 | 35 | ("share/jupyter/labextensions/jupyter-threejs", str(lab_path), "**"),
|
34 | 36 | ("share/jupyter/labextensions/jupyter-threejs", str(HERE), "install.json"),
|
35 | 37 | # Support JupyterLab 2.x
|
36 |
| - ('share/jupyter/lab/extensions', str(HERE/'js'/'lab-dist'), 'jupyter-threejs-*.tgz'), |
| 38 | + ('share/jupyter/lab/extensions', str(js_path/'lab-dist'), 'jupyter-threejs-*.tgz'), |
37 | 39 | # Support Jupyter Notebook
|
38 | 40 | ('etc/jupyter/nbconfig', str(HERE/'jupyter-config'), '**/*.json'),
|
39 |
| - ('share/jupyter/nbextensions/jupyter-threejs', str(HERE/name/'static'), '**/*.js'), |
40 |
| - ('share/jupyter/nbextensions/jupyter-threejs', str(HERE/name/'static'), '**/*.js.map') |
| 41 | + ('share/jupyter/nbextensions/jupyter-threejs', str(py_path/'static'), '**/*.js'), |
| 42 | + ('share/jupyter/nbextensions/jupyter-threejs', str(py_path/'static'), '**/*.js.map') |
41 | 43 | ],
|
42 | 44 | )
|
43 | 45 | cmdclass['js'] = combine_commands(
|
44 | 46 | install_npm(
|
45 |
| - path=str(HERE/'js'), |
46 |
| - build_dir=str(HERE/'name'/'static'), |
47 |
| - source_dir=str(HERE/'js'), |
| 47 | + path=str(js_path), |
| 48 | + build_dir=str(py_path/'static'), |
| 49 | + source_dir=str(js_path), |
48 | 50 | build_cmd='build:all'
|
49 | 51 | ),
|
50 | 52 | ensure_targets([
|
51 |
| - str(HERE/name/'static'/'extension.js'), |
52 |
| - str(HERE/name/'static'/'index.js'), |
53 |
| - str(HERE/'js'/'src'/'core'/'BufferAttribute.autogen.js'), |
54 |
| - str(HERE/name/'core'/'BufferAttribute_autogen.py'), |
| 53 | + str(py_path/'static'/'extension.js'), |
| 54 | + str(py_path/'static'/'index.js'), |
| 55 | + str(js_path/'src'/'core'/'BufferAttribute.autogen.js'), |
| 56 | + str(py_path/'core'/'BufferAttribute_autogen.py'), |
55 | 57 | ]),
|
56 | 58 | )
|
57 | 59 |
|
|
0 commit comments