Skip to content

Editable install doesn't provide/link datadir #774

@tobiasdiez

Description

@tobiasdiez

We currently install the Jupyter kernel spec via

kernel_dir = get_option('datadir') / 'share/jupyter/kernels/sagemath'
install_data('ext_data/notebook-ipython/logo.svg', install_dir: kernel_dir)
install_data('ext_data/notebook-ipython/logo-64x64.png', install_dir: kernel_dir)
kernel_data = configuration_data()
kernel_data.set('SAGE_VERSION', meson.project_version())
configure_file(
  input: 'ext_data/notebook-ipython/kernel.json.in',
  output: 'kernel.json',
  install_dir: kernel_dir,
  install: true,
  configuration: kernel_data,
)

This works fine in a "normal" installation. But if you use an editable install, the kernelspec is not created in the python prefix and thus Jupyter cannot find the kernel.

What's the correct way to "install" such data files in editable mode?

Metadata

Metadata

Assignees

No one assigned

    Labels

    not-a-bugThings work as designedquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions