Skip to content

Install from git failure #66

@nthiery

Description

@nthiery

Description

Trying to currently install jupyterlab-deck from the git repository fails.

Reproduce

Short version:

pip  install git+https://github.com/deathbeds/jupyterlab-deck.git

Long version:

git clone git@github.com:deathbeds/jupyterlab-deck.git
cd jupyterlab_deck                                    
pip install .              
Processing /tmp/jupyterlab-deck
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "/opt/mambaforge/envs/intro-science-donnees/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/opt/mambaforge/envs/intro-science-donnees/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/opt/mambaforge/envs/intro-science-donnees/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3wqla2dh/overlay/lib/python3.11/site-packages/flit_core/buildapi.py", line 23, in get_requires_for_build_wheel
          info = read_flit_config(pyproj_toml)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3wqla2dh/overlay/lib/python3.11/site-packages/flit_core/config.py", line 79, in read_flit_config
          return prep_toml_config(d, path)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-3wqla2dh/overlay/lib/python3.11/site-packages/flit_core/config.py", line 177, in prep_toml_config
          raise ConfigError(f"{toml_key} must refer to a directory")
      flit_core.config.ConfigError: tool.flit.external-data.directory must refer to a directory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

This seems to be caused by the following configuration in pyproject.toml

[tool.flit.external-data]
directory = "src/_d"

whereas there is no src/_d directory.

Is there some instruction to run first that would create that directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions