Skip to content

Cannot install from Git #2248

@clin1234

Description

@clin1234
(venv) cc@pretty:~$ pip install git+https://github.com/unicorn-engine/unicorn#subdirectory=bindings/python
Collecting git+https://github.com/unicorn-engine/unicorn#subdirectory=bindings/python
  Cloning https://github.com/unicorn-engine/unicorn to /tmp/pip-req-build-kansnc2o
  Running command git clone --filter=blob:none --quiet https://github.com/unicorn-engine/unicorn /tmp/pip-req-build-kansnc2o
  Resolved https://github.com/unicorn-engine/unicorn to commit c24c9ebe773ce6fbecb0e39f68ffb23b7326b17f
  Running command git submodule update --init --recursive -q
  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
  ╰─> [107 lines of output]
      /tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
      !!
      
              ********************************************************************************
              Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
      
              By 2026-Feb-18, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        corresp(dist, value, root_dir)
      /tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: BSD License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        dist._finalize_license_expression()
      /tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!
      
              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:
      
              License :: OSI Approved :: BSD License
      
              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************
      
      !!
        self._finalize_license_expression()
      running dist_info
      creating /tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info
      writing /tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info/dependency_links.txt
      writing requirements to /tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info/requires.txt
      writing top-level names to /tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info/top_level.txt
      writing manifest file '/tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*' under directory 'src'
      warning: no directories found matching 'unicorn/lib'
      warning: no directories found matching 'unicorn/include'
      warning: no files found matching '*.a' anywhere in distribution
      warning: no files found matching '*.so.2' anywhere in distribution
      warning: no files found matching '*.*lib' anywhere in distribution
      warning: no files found matching '*.dll' anywhere in distribution
      warning: no files found matching '*.h' anywhere in distribution
      writing manifest file '/tmp/pip-modern-metadata-bvadsqbk/unicorn.egg-info/SOURCES.txt'
      creating '/tmp/pip-modern-metadata-bvadsqbk/unicorn-2.1.5.dev1+gc24c9ebe7.dist-info'
      Traceback (most recent call last):
        File "/home/cc/venv/lib64/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/home/cc/venv/lib64/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/cc/venv/lib64/python3.14t/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 175, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/build_meta.py", line 374, in prepare_metadata_for_build_wheel
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/build_meta.py", line 317, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 149, in <module>
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/__init__.py", line 115, in setup
          return distutils.core.setup(**attrs)
                 ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/_distutils/core.py", line 186, in setup
          return run_commands(dist)
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
          dist.run_commands()
          ~~~~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/_distutils/dist.py", line 1002, in run_commands
          self.run_command(cmd)
          ~~~~~~~~~~~~~~~~^^^^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/dist.py", line 1102, in run_command
          super().run_command(command)
          ~~~~~~~~~~~~~~~~~~~^^^^^^^^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/_distutils/dist.py", line 1021, in run_command
          cmd_obj.run()
          ~~~~~~~~~~~^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/command/dist_info.py", line 99, in run
          bdist_wheel = self.get_finalized_command('bdist_wheel')
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/_distutils/cmd.py", line 334, in get_finalized_command
          cmd_obj.ensure_finalized()
          ~~~~~~~~~~~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/_distutils/cmd.py", line 135, in ensure_finalized
          self.finalize_options()
          ~~~~~~~~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/command/bdist_wheel.py", line 250, in finalize_options
          self._validate_py_limited_api()
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
        File "/tmp/pip-build-env-csk85ls5/overlay/lib/python3.14t/site-packages/setuptools/command/bdist_wheel.py", line 285, in _validate_py_limited_api
          raise ValueError(
          ...<4 lines>...
          )
      ValueError: `py_limited_api='cp37'` not supported. `Py_LIMITED_API` is currently incompatible with `Py_GIL_DISABLED`. See https://github.com/python/cpython/issues/111506.
      [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions