-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Third party LICENSE collection error when build wheel package #126769
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
Comments
I found this issue when building directly whl on my ubuntu machine (without using docker), or maybe I need to use docker (follow the ci script) to build it? if 'ApacheLicense' in txt:
# Hmm, do we need to check the text?
return 'Apache-2.0'
.
.
.
elif all([squeeze(m) in txt.lower() for m in bsd3_src_txt]):
return 'BSD-Source-Code'
elif any([squeeze(m) in txt.lower() for m in mit_txt]):
return 'MIT'
else:
# A license may not be on this list, but is still a valid license.
raise ValueError('unknown license') |
We did attempt to fix this in |
We are waiting for some higher level abstractions for metrics to land. Once landed, for the OSS community, we plan on implementing those higher level abstractions via OTEL.
Works on nightly because of (https://github.com/pytorch/pytorch/blob/main/third_party/build_bundled.py#L117) |
Sorry, something went wrong.
@xiaoran007 FWIW, the issue didn't repro for me on
I think what's happening here is that
To confirm this, you'd need to do Can you confirm this is what might be happening? |
Yes, when I checkout to tag v2.1.0, the files are untracked: HEAD detached at v2.1.0
Untracked files:
(use "git add <file>..." to include in what will be committed)
third_party/cpp-httplib/
third_party/opentelemetry-cpp/ And I tried removing them and rebuilding the whl package now. It may takes a bit of time. |
It works, thank you very much! |
Thanks @xiaoran007! |
|
Validated with 2.4:
|
Uh oh!
There was an error while loading. Please reload this page.
🐛 Describe the bug
When build wheel package use
The third party LICENSE collection may not work, for example the LICENSE file in path
can not be identified by the identify_license() function in third_party/build_bundled.py.
The contains in this LICENSE file can not be identified by any key words defined in identify_license() function.
Versions
tag: v2.1.0
os: ubuntu 20.04
cc @malfet @seemethere
The text was updated successfully, but these errors were encountered: