Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install from source, missing LICENSE file #53

Closed
fxcoudert opened this issue Dec 24, 2024 · 2 comments
Closed

Cannot install from source, missing LICENSE file #53

fxcoudert opened this issue Dec 24, 2024 · 2 comments

Comments

@fxcoudert
Copy link

Installing from source with pip install ./cuequivariance-0.1.0 -vv --no-deps --no-build-isolation from the file at https://files.pythonhosted.org/packages/ec/bf/146e021113f2aedd54868ab98d0d5e0c47702a01bc1c1803c5bec309ece6/cuequivariance-0.1.0.tar.gz

fails because license files are not distributed.

  Running command Preparing metadata (pyproject.toml)
  Traceback (most recent call last):
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
      ~~~~^^
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
                               ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
      whl_basename = backend.build_wheel(metadata_directory, config_settings)
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/hatchling/build.py", line 58, in build_wheel
      return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
                              ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/hatchling/builders/plugin/interface.py", line 90, in build
      self.metadata.validate_fields()
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/hatchling/metadata/core.py", line 266, in validate_fields
      self.core.validate_fields()
      ~~~~~~~~~~~~~~~~~~~~~~~~~^^
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/hatchling/metadata/core.py", line 1366, in validate_fields
      getattr(self, attribute)
      ~~~~~~~^^^^^^^^^^^^^^^^^
    File "/Users/fx/miniforge3/envs/test/lib/python3.13/site-packages/hatchling/metadata/core.py", line 700, in license
      raise OSError(message)
  OSError: License file does not exist: ../LICENSES/LICENSE
  error: subprocess-exited-with-error
@mariogeiger
Copy link
Collaborator

Hi,

Do you think this would fix you issue? #56

@mariogeiger
Copy link
Collaborator

Should be fixed by #56 in next release. Please re-open in case there is still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants