Skip to content

[Termux] Unable to install coincurve. RuntimeError with cffi: Expected exactly one LICENSE file in cffi distribution, got 0 #187

@ErnestoAizenberg

Description

@ErnestoAizenberg
:.../python3.12/site-packages$ cd /data/data/com.termux/files/usr/lib/python3.12/site-packages/cffi
touch LICENSE.txt COPYING COPYING.txt LICENSE COPYRIGHT
ls
cd -
pip install coincurve --no-cache-dir                                  COPYING          _imp_emulation.py       model.py
COPYING.txt      _shimmed_dist_utils.py  parse_c_type.h
COPYRIGHT        api.py                  pkgconfig.py
LICENSE          backend_ctypes.py       recompiler.py
LICENSE.txt      cffi_opcode.py          setuptools_ext.py
__init__.py      commontypes.py          vengine_cpy.py
__pycache__      cparser.py              vengine_gen.py
_cffi_errors.h   error.py                verifier.py
_cffi_include.h  ffiplatform.py
_embedding.h     lock.py
/data/data/com.termux/files/usr/lib/python3.12/site-packages
Collecting coincurve
  Downloading coincurve-21.0.0.tar.gz (128 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
        File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/data/data/com.termux/files/usr/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 178, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/data/data/com.termux/files/usr/tmp/pip-build-env-jw89wu0e/overlay/lib/python3.12/site-packages/hatchling/build.py", line 58, in build_wheel
          return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/data/data/com.termux/files/usr/tmp/pip-build-env-jw89wu0e/overlay/lib/python3.12/site-packages/hatchling/builders/plugin/interface.py", line 147, in build
          build_hook.initialize(version, build_data)
        File "/data/data/com.termux/files/usr/tmp/pip-install-b0l5k59e/coincurve_2fcd1aa7ee654717adcd84515ddb5728/hatch_build.py", line 34, in initialize
          raise RuntimeError(message)
      RuntimeError: Expected exactly one LICENSE file in cffi distribution, got 0
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
:.../python3.12/site-packages$```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions