mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fix manual licensing (#128630)
It has come to my attention that some of our licenses are incorrect, so I attempted to rectify a few of them based on given recommendations for: clog - BSD-3 eigen - MPL-2.0 ffnvcodec - LGPL-2.1 -> **hungarian - Permissive (free to use)** irrlicht - The Irrlicht Engine License (zlib/libpng) -> **pdcurses - Public Domain for core** -> **sigslot - Public Domain** test - BSD-3 Vulkan - Apache-2.0 or MIT fb-only: more context is here https://fb.workplace.com/groups/osssupport/posts/26333256012962998/?comment_id=26333622989592967 This PR addressed the manual mismatches of licensing mentioned above (the two bolded, one is getting addressed in #128085, but as everything else is generated by pulling through other files, I did not address those. It is unclear what needs to be updated for the remaining to be accurate/if they're inaccurate today. Pull Request resolved: https://github.com/pytorch/pytorch/pull/128630 Approved by: https://github.com/malfet
This commit is contained in:
committed by
PyTorch MergeBot
parent
afdaa7fc95
commit
6767e38267
@ -15,7 +15,7 @@ except ImportError:
|
|||||||
create_bundled = None
|
create_bundled = None
|
||||||
|
|
||||||
license_file = "third_party/LICENSES_BUNDLED.txt"
|
license_file = "third_party/LICENSES_BUNDLED.txt"
|
||||||
starting_txt = "The Pytorch repository and source distributions bundle"
|
starting_txt = "The PyTorch repository and source distributions bundle"
|
||||||
site_packages = os.path.dirname(os.path.dirname(torch.__file__))
|
site_packages = os.path.dirname(os.path.dirname(torch.__file__))
|
||||||
distinfo = glob.glob(os.path.join(site_packages, "torch-*dist-info"))
|
distinfo = glob.glob(os.path.join(site_packages, "torch-*dist-info"))
|
||||||
|
|
||||||
|
23
third_party/LICENSES_BUNDLED.txt
generated
vendored
23
third_party/LICENSES_BUNDLED.txt
generated
vendored
@ -1,4 +1,4 @@
|
|||||||
The Pytorch repository and source distributions bundle several libraries that are
|
The PyTorch repository and source distributions bundle several libraries that are
|
||||||
compatibly licensed. We list these here.
|
compatibly licensed. We list these here.
|
||||||
|
|
||||||
Name: DCGM
|
Name: DCGM
|
||||||
@ -78,6 +78,11 @@ License: BSD-3-Clause
|
|||||||
Files: third_party/kineto/libkineto/third_party/dynolog/third_party/DCGM/testing/python3/libs_3rdparty/colorama
|
Files: third_party/kineto/libkineto/third_party/dynolog/third_party/DCGM/testing/python3/libs_3rdparty/colorama
|
||||||
For details, see: third_party/kineto/libkineto/third_party/dynolog/third_party/DCGM/testing/python3/libs_3rdparty/colorama/LICENSE.txt
|
For details, see: third_party/kineto/libkineto/third_party/dynolog/third_party/DCGM/testing/python3/libs_3rdparty/colorama/LICENSE.txt
|
||||||
|
|
||||||
|
Name: cpp-httplib
|
||||||
|
License: MIT
|
||||||
|
Files: third_party/cpp-httplib
|
||||||
|
For details, see: third_party/cpp-httplib/LICENSE
|
||||||
|
|
||||||
Name: cpplint
|
Name: cpplint
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Files: third_party/kineto/libkineto/third_party/dynolog/third_party/json/third_party/cpplint,
|
Files: third_party/kineto/libkineto/third_party/dynolog/third_party/json/third_party/cpplint,
|
||||||
@ -168,12 +173,12 @@ Files: third_party/flatbuffers
|
|||||||
|
|
||||||
Name: fmt
|
Name: fmt
|
||||||
License: MIT with exception
|
License: MIT with exception
|
||||||
Files: third_party/fmt,
|
Files: third_party/kineto/libkineto/third_party/dynolog/third_party/fmt,
|
||||||
third_party/kineto/libkineto/third_party/dynolog/third_party/fmt,
|
third_party/kineto/libkineto/third_party/fmt,
|
||||||
third_party/kineto/libkineto/third_party/fmt
|
third_party/fmt
|
||||||
For details, see: third_party/fmt/LICENSE,
|
For details, see: third_party/kineto/libkineto/third_party/dynolog/third_party/fmt/LICENSE.rst,
|
||||||
third_party/kineto/libkineto/third_party/dynolog/third_party/fmt/LICENSE.rst,
|
third_party/kineto/libkineto/third_party/fmt/LICENSE.rst,
|
||||||
third_party/kineto/libkineto/third_party/fmt/LICENSE.rst
|
third_party/fmt/LICENSE
|
||||||
|
|
||||||
Name: foxi
|
Name: foxi
|
||||||
License: MIT
|
License: MIT
|
||||||
@ -259,7 +264,7 @@ Files: third_party/fbgemm/third_party/hipify_torch
|
|||||||
For details, see: third_party/fbgemm/third_party/hipify_torch/LICENSE.txt
|
For details, see: third_party/fbgemm/third_party/hipify_torch/LICENSE.txt
|
||||||
|
|
||||||
Name: hungarian
|
Name: hungarian
|
||||||
License: Apache-2.0
|
License: Permissive (free to use)
|
||||||
Files: third_party/opentelemetry-cpp/tools/vcpkg/ports/hungarian
|
Files: third_party/opentelemetry-cpp/tools/vcpkg/ports/hungarian
|
||||||
For details, see: third_party/opentelemetry-cpp/tools/vcpkg/ports/hungarian/LICENSE.txt
|
For details, see: third_party/opentelemetry-cpp/tools/vcpkg/ports/hungarian/LICENSE.txt
|
||||||
|
|
||||||
@ -359,7 +364,7 @@ Files: third_party/opentelemetry-cpp/third_party/opentracing-cpp
|
|||||||
For details, see: third_party/opentelemetry-cpp/third_party/opentracing-cpp/LICENSE
|
For details, see: third_party/opentelemetry-cpp/third_party/opentracing-cpp/LICENSE
|
||||||
|
|
||||||
Name: pdcurses
|
Name: pdcurses
|
||||||
License: Apache-2.0
|
License: Public Domain for core
|
||||||
Files: third_party/opentelemetry-cpp/tools/vcpkg/ports/pdcurses
|
Files: third_party/opentelemetry-cpp/tools/vcpkg/ports/pdcurses
|
||||||
For details, see: third_party/opentelemetry-cpp/tools/vcpkg/ports/pdcurses/LICENSE
|
For details, see: third_party/opentelemetry-cpp/tools/vcpkg/ports/pdcurses/LICENSE
|
||||||
|
|
||||||
|
6
third_party/build_bundled.py
vendored
6
third_party/build_bundled.py
vendored
@ -41,7 +41,7 @@ def create_bundled(d, outstream, include_files=False):
|
|||||||
"""Write the information to an open outstream"""
|
"""Write the information to an open outstream"""
|
||||||
collected = collect_license(d)
|
collected = collect_license(d)
|
||||||
sorted_keys = sorted(collected.keys())
|
sorted_keys = sorted(collected.keys())
|
||||||
outstream.write('The Pytorch repository and source distributions bundle '
|
outstream.write('The PyTorch repository and source distributions bundle '
|
||||||
'several libraries that are \n')
|
'several libraries that are \n')
|
||||||
outstream.write('compatibly licensed. We list these here.')
|
outstream.write('compatibly licensed. We list these here.')
|
||||||
files_to_include = []
|
files_to_include = []
|
||||||
@ -107,10 +107,10 @@ def identify_license(f, exception=''):
|
|||||||
return 'Apache-2.0'
|
return 'Apache-2.0'
|
||||||
elif 'libhungarian' in txt:
|
elif 'libhungarian' in txt:
|
||||||
# Used in opentelemetry-cpp/tools/vcpkg/ports/hungarian
|
# Used in opentelemetry-cpp/tools/vcpkg/ports/hungarian
|
||||||
return 'Apache-2.0'
|
return 'Permissive (free to use)'
|
||||||
elif 'PDCurses' in txt:
|
elif 'PDCurses' in txt:
|
||||||
# Used in opentelemetry-cpp/tools/vcpkg/ports/pdcurses
|
# Used in opentelemetry-cpp/tools/vcpkg/ports/pdcurses
|
||||||
return 'Apache-2.0'
|
return 'Public Domain for core'
|
||||||
elif 'Copyright1999UniversityofNorthCarolina' in txt:
|
elif 'Copyright1999UniversityofNorthCarolina' in txt:
|
||||||
# Used in opentelemetry-cpp/tools/vcpkg/ports/pqp
|
# Used in opentelemetry-cpp/tools/vcpkg/ports/pqp
|
||||||
return 'Apache-2.0'
|
return 'Apache-2.0'
|
||||||
|
Reference in New Issue
Block a user