diff --git a/.gitattributes b/.gitattributes index a79c70ca8421e82bdecf8045ff4e4980cec22f18..731760163f5c7b3ed95222bbc258a087d38cf437 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1576,3 +1576,4 @@ parrot/lib/python3.10/site-packages/scipy/cluster/__pycache__/hierarchy.cpython- parrot/lib/python3.10/site-packages/scipy/stats/__pycache__/_distn_infrastructure.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text vllm/lib/python3.10/site-packages/multidict/_multidict.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text vllm/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text +vllm/lib/python3.10/site-packages/torio/lib/_torio_ffmpeg6.so filter=lfs diff=lfs merge=lfs -text diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_copy_from_and_resize_ops.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_copy_from_and_resize_ops.h new file mode 100644 index 0000000000000000000000000000000000000000..173a0558a04211badc4213b7f1cce5d96cb5d48c --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_copy_from_and_resize_ops.h @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Operator.h + +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { +namespace _ops { + + +struct TORCH_API _copy_from_and_resize { + using schema = at::Tensor (const at::Tensor &, const at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_copy_from_and_resize") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_copy_from_and_resize(Tensor self, Tensor dst) -> Tensor") + static at::Tensor call(const at::Tensor & self, const at::Tensor & dst); + static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & dst); +}; + +struct TORCH_API _copy_from_and_resize_out { + using schema = at::Tensor & (const at::Tensor &, const at::Tensor &, at::Tensor &); + using ptr_schema = schema*; + // See Note [static constexpr char* members for windows NVCC] + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_copy_from_and_resize") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out") + STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_copy_from_and_resize.out(Tensor self, Tensor dst, *, Tensor(a!) out) -> Tensor(a!)") + static at::Tensor & call(const at::Tensor & self, const at::Tensor & dst, at::Tensor & out); + static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, const at::Tensor & dst, at::Tensor & out); +}; + +}} // namespace at::_ops diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_dirichlet_grad_cuda_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_dirichlet_grad_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..293418670ce1b9ac2ded03c65c016faff5a428bb --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_dirichlet_grad_cuda_dispatch.h @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API at::Tensor _dirichlet_grad(const at::Tensor & x, const at::Tensor & alpha, const at::Tensor & total); + +} // namespace cuda +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_has_compatible_shallow_copy_type_native.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_has_compatible_shallow_copy_type_native.h new file mode 100644 index 0000000000000000000000000000000000000000..ea20d4091fb7a7bb62eb0f008fda4974fe33389a --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_has_compatible_shallow_copy_type_native.h @@ -0,0 +1,21 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API bool _has_compatible_shallow_copy_type(const at::Tensor & self, const at::Tensor & from); +} // namespace native +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_prelu_kernel_backward_cuda_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_prelu_kernel_backward_cuda_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..b3d3acc88549936300923dee53ded8cd81acea0c --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/_prelu_kernel_backward_cuda_dispatch.h @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace cuda { + +TORCH_API ::std::tuple _prelu_kernel_backward(const at::Tensor & grad_output, const at::Tensor & self, const at::Tensor & weight); + +} // namespace cuda +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/col_indices_compositeexplicitautograd_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/col_indices_compositeexplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..7786bd61894dd75d15b6f215bc8bcc463fd4514c --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/col_indices_compositeexplicitautograd_dispatch.h @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeexplicitautograd { + +TORCH_API at::Tensor col_indices(const at::Tensor & self); + +} // namespace compositeexplicitautograd +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/conv_tbc_backward_native.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/conv_tbc_backward_native.h new file mode 100644 index 0000000000000000000000000000000000000000..31c307d4b307e5b17aa8065e3bb92bfc1be95a21 --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/conv_tbc_backward_native.h @@ -0,0 +1,21 @@ +#pragma once + +// @generated by torchgen/gen.py from NativeFunction.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + +namespace at { +namespace native { +TORCH_API ::std::tuple conv_tbc_backward(const at::Tensor & self, const at::Tensor & input, const at::Tensor & weight, const at::Tensor & bias, int64_t pad); +} // namespace native +} // namespace at diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/erfinv.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/erfinv.h new file mode 100644 index 0000000000000000000000000000000000000000..ba0a3fd6eabc0c9f00588bcc5b96a5dee838f05d --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/erfinv.h @@ -0,0 +1,39 @@ +#pragma once + +// @generated by torchgen/gen.py from Function.h + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + + + +#include + +namespace at { + + +// aten::erfinv(Tensor self) -> Tensor +inline at::Tensor erfinv(const at::Tensor & self) { + return at::_ops::erfinv::call(self); +} + +// aten::erfinv.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & erfinv_out(at::Tensor & out, const at::Tensor & self) { + return at::_ops::erfinv_out::call(self, out); +} +// aten::erfinv.out(Tensor self, *, Tensor(a!) out) -> Tensor(a!) +inline at::Tensor & erfinv_outf(const at::Tensor & self, at::Tensor & out) { + return at::_ops::erfinv_out::call(self, out); +} + +} diff --git a/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/gru_cell_compositeimplicitautograd_dispatch.h b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/gru_cell_compositeimplicitautograd_dispatch.h new file mode 100644 index 0000000000000000000000000000000000000000..24777c6952927f7b3856beee681ff6d9e5c15982 --- /dev/null +++ b/videollama2/lib/python3.10/site-packages/torch/include/ATen/ops/gru_cell_compositeimplicitautograd_dispatch.h @@ -0,0 +1,23 @@ +#pragma once +// @generated by torchgen/gen.py from DispatchKeyFunction.h + +// NB: The implementing C++ file is RegisterDispatchKey.cpp + +// The only #includes we need are for custom classes that have defaults in the C++ API +#include +#include +#include + +// Forward declarations of any types needed in the operator signatures. +// We can't directly include these classes because it will cause circular include dependencies. +// This file is included by TensorBody.h, which defines the Tensor class. +#include + +namespace at { + +namespace compositeimplicitautograd { + +TORCH_API at::Tensor gru_cell(const at::Tensor & input, const at::Tensor & hx, const at::Tensor & w_ih, const at::Tensor & w_hh, const c10::optional & b_ih={}, const c10::optional & b_hh={}); + +} // namespace compositeimplicitautograd +} // namespace at diff --git a/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/LICENSE b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..348ad94a1067d211ef067cd70766de8b19d29e82 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/LICENSE @@ -0,0 +1,1343 @@ +The Python Imaging Library (PIL) is + + Copyright © 1997-2011 by Secret Labs AB + Copyright © 1995-2011 by Fredrik Lundh and contributors + +Pillow is the friendly PIL fork. It is + + Copyright © 2010-2024 by Jeffrey A. Clark and contributors + +Like PIL, Pillow is licensed under the open source HPND License: + +By obtaining, using, and/or copying this software and/or its associated +documentation, you agree that you have read, understood, and will comply +with the following terms and conditions: + +Permission to use, copy, modify and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appears in all copies, and that +both that copyright notice and this permission notice appear in supporting +documentation, and that the name of Secret Labs AB or the author not be +used in advertising or publicity pertaining to distribution of the software +without specific, written prior permission. + +SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS +SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. +IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL, +INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + +---- + +BROTLI + +Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +---- + +BZIP2 + + +-------------------------------------------------------------------------- + +This program, "bzip2", the associated library "libbzip2", and all +documentation, are copyright (C) 1996-2019 Julian R Seward. All +rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. The origin of this software must not be misrepresented; you must + not claim that you wrote the original software. If you use this + software in a product, an acknowledgment in the product + documentation would be appreciated but is not required. + +3. Altered source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + +4. The name of the author may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +Julian Seward, jseward@acm.org +bzip2/libbzip2 version 1.0.8 of 13 July 2019 + +-------------------------------------------------------------------------- + + +---- + +FREETYPE2 + +The FreeType 2 font engine is copyrighted work and cannot be used +legally without a software license. In order to make this project +usable to a vast majority of developers, we distribute it under two +mutually exclusive open-source licenses. + +This means that *you* must choose *one* of the two licenses described +below, then obey all its terms and conditions when using FreeType 2 in +any of your projects or products. + + - The FreeType License, found in the file `docs/FTL.TXT`, which is + similar to the original BSD license *with* an advertising clause + that forces you to explicitly cite the FreeType project in your + product's documentation. All details are in the license file. + This license is suited to products which don't use the GNU General + Public License. + + Note that this license is compatible to the GNU General Public + License version 3, but not version 2. + + - The GNU General Public License version 2, found in + `docs/GPLv2.TXT` (any later version can be used also), for + programs which already use the GPL. Note that the FTL is + incompatible with GPLv2 due to its advertisement clause. + +The contributed BDF and PCF drivers come with a license similar to +that of the X Window System. It is compatible to the above two +licenses (see files `src/bdf/README` and `src/pcf/README`). The same +holds for the source code files `src/base/fthash.c` and +`include/freetype/internal/fthash.h`; they were part of the BDF driver +in earlier FreeType versions. + +The gzip module uses the zlib license (see `src/gzip/zlib.h`) which +too is compatible to the above two licenses. + +The files `src/autofit/ft-hb.c` and `src/autofit/ft-hb.h` contain code +taken almost verbatim from the HarfBuzz file `hb-ft.cc`, which uses +the 'Old MIT' license, compatible to the above two licenses. + +The MD5 checksum support (only used for debugging in development +builds) is in the public domain. + +-------------------------------------------------------------------------- + + The FreeType Project LICENSE + ---------------------------- + + 2006-Jan-27 + + Copyright 1996-2002, 2006 by + David Turner, Robert Wilhelm, and Werner Lemberg + + + +Introduction +============ + + The FreeType Project is distributed in several archive packages; + some of them may contain, in addition to the FreeType font engine, + various tools and contributions which rely on, or relate to, the + FreeType Project. + + This license applies to all files found in such packages, and + which do not fall under their own explicit license. The license + affects thus the FreeType font engine, the test programs, + documentation and makefiles, at the very least. + + This license was inspired by the BSD, Artistic, and IJG + (Independent JPEG Group) licenses, which all encourage inclusion + and use of free software in commercial and freeware products + alike. As a consequence, its main points are that: + + o We don't promise that this software works. However, we will be + interested in any kind of bug reports. (`as is' distribution) + + o You can use this software for whatever you want, in parts or + full form, without having to pay us. (`royalty-free' usage) + + o You may not pretend that you wrote this software. If you use + it, or only parts of it, in a program, you must acknowledge + somewhere in your documentation that you have used the + FreeType code. (`credits') + + We specifically permit and encourage the inclusion of this + software, with or without modifications, in commercial products. + We disclaim all warranties covering The FreeType Project and + assume no liability related to The FreeType Project. + + + Finally, many people asked us for a preferred form for a + credit/disclaimer to use in compliance with this license. We thus + encourage you to use the following text: + + """ + Portions of this software are copyright © The FreeType + Project (www.freetype.org). All rights reserved. + """ + + Please replace with the value from the FreeType version you + actually use. + + +Legal Terms +=========== + +0. Definitions +-------------- + + Throughout this license, the terms `package', `FreeType Project', + and `FreeType archive' refer to the set of files originally + distributed by the authors (David Turner, Robert Wilhelm, and + Werner Lemberg) as the `FreeType Project', be they named as alpha, + beta or final release. + + `You' refers to the licensee, or person using the project, where + `using' is a generic term including compiling the project's source + code as well as linking it to form a `program' or `executable'. + This program is referred to as `a program using the FreeType + engine'. + + This license applies to all files distributed in the original + FreeType Project, including all source code, binaries and + documentation, unless otherwise stated in the file in its + original, unmodified form as distributed in the original archive. + If you are unsure whether or not a particular file is covered by + this license, you must contact us to verify this. + + The FreeType Project is copyright (C) 1996-2000 by David Turner, + Robert Wilhelm, and Werner Lemberg. All rights reserved except as + specified below. + +1. No Warranty +-------------- + + THE FREETYPE PROJECT IS PROVIDED `AS IS' WITHOUT WARRANTY OF ANY + KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. IN NO EVENT WILL ANY OF THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY DAMAGES CAUSED BY THE USE OR THE INABILITY TO + USE, OF THE FREETYPE PROJECT. + +2. Redistribution +----------------- + + This license grants a worldwide, royalty-free, perpetual and + irrevocable right and license to use, execute, perform, compile, + display, copy, create derivative works of, distribute and + sublicense the FreeType Project (in both source and object code + forms) and derivative works thereof for any purpose; and to + authorize others to exercise some or all of the rights granted + herein, subject to the following conditions: + + o Redistribution of source code must retain this license file + (`FTL.TXT') unaltered; any additions, deletions or changes to + the original files must be clearly indicated in accompanying + documentation. The copyright notices of the unaltered, + original files must be preserved in all copies of source + files. + + o Redistribution in binary form must provide a disclaimer that + states that the software is based in part of the work of the + FreeType Team, in the distribution documentation. We also + encourage you to put an URL to the FreeType web page in your + documentation, though this isn't mandatory. + + These conditions apply to any software derived from or based on + the FreeType Project, not just the unmodified files. If you use + our work, you must acknowledge us. However, no fee need be paid + to us. + +3. Advertising +-------------- + + Neither the FreeType authors and contributors nor you shall use + the name of the other for commercial, advertising, or promotional + purposes without specific prior written permission. + + We suggest, but do not require, that you use one or more of the + following phrases to refer to this software in your documentation + or advertising materials: `FreeType Project', `FreeType Engine', + `FreeType library', or `FreeType Distribution'. + + As you have not signed this license, you are not required to + accept it. However, as the FreeType Project is copyrighted + material, only this license, or another one contracted with the + authors, grants you the right to use, distribute, and modify it. + Therefore, by using, distributing, or modifying the FreeType + Project, you indicate that you understand and accept all the terms + of this license. + +4. Contacts +----------- + + There are two mailing lists related to FreeType: + + o freetype@nongnu.org + + Discusses general use and applications of FreeType, as well as + future and wanted additions to the library and distribution. + If you are looking for support, start in this list if you + haven't found anything to help you in the documentation. + + o freetype-devel@nongnu.org + + Discusses bugs, as well as engine internals, design issues, + specific licenses, porting, etc. + + Our home page can be found at + + https://www.freetype.org + + +--- end of FTL.TXT --- + +-------------------------------------------------------------------------- + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. + +-------------------------------------------------------------------------- + +The following license details are part of `src/bdf/README`: + +``` +License +******* + +Copyright (C) 2001-2002 by Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +*** Portions of the driver (that is, bdflib.c and bdf.h): + +Copyright 2000 Computing Research Labs, New Mexico State University +Copyright 2001-2002, 2011 Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE COMPUTING RESEARCH LAB OR NEW MEXICO STATE UNIVERSITY BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT +OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR +THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Credits +******* + +This driver is based on excellent Mark Leisher's bdf library. If you +find something good in this driver you should probably thank him, not +me. +``` + +The following license details are part of `src/pcf/README`: + +``` +License +******* + +Copyright (C) 2000 by Francesco Zappa Nardelli + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +Credits +******* + +Keith Packard wrote the pcf driver found in XFree86. His work is at +the same time the specification and the sample implementation of the +PCF format. Undoubtedly, this driver is inspired from his work. +``` + + +---- + +HARFBUZZ + +HarfBuzz is licensed under the so-called "Old MIT" license. Details follow. +For parts of HarfBuzz that are licensed under different licenses see individual +files names COPYING in subdirectories where applicable. + +Copyright © 2010-2022 Google, Inc. +Copyright © 2015-2020 Ebrahim Byagowi +Copyright © 2019,2020 Facebook, Inc. +Copyright © 2012,2015 Mozilla Foundation +Copyright © 2011 Codethink Limited +Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies) +Copyright © 2009 Keith Stribley +Copyright © 2011 Martin Hosken and SIL International +Copyright © 2007 Chris Wilson +Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod +Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc. +Copyright © 1998-2005 David Turner and Werner Lemberg +Copyright © 2016 Igalia S.L. +Copyright © 2022 Matthias Clasen +Copyright © 2018,2021 Khaled Hosny +Copyright © 2018,2019,2020 Adobe, Inc +Copyright © 2013-2015 Alexei Podtelezhnikov + +For full copyright notices consult the individual files in the package. + + +Permission is hereby granted, without written agreement and without +license or royalty fees, to use, copy, modify, and distribute this +software and its documentation for any purpose, provided that the +above copyright notice and the following two paragraphs appear in +all copies of this software. + +IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR +DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN +IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. + +THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS +ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO +PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. + + +---- + +LCMS2 + +Little CMS +Copyright (c) 1998-2020 Marti Maria Saguer + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +---- + +LIBJPEG + +1. We don't promise that this software works. (But if you find any bugs, + please let us know!) +2. You can use this software for whatever you want. You don't have to pay us. +3. You may not pretend that you wrote this software. If you use it in a + program, you must acknowledge somewhere in your documentation that + you've used the IJG code. + +In legalese: + +The authors make NO WARRANTY or representation, either express or implied, +with respect to this software, its quality, accuracy, merchantability, or +fitness for a particular purpose. This software is provided "AS IS", and you, +its user, assume the entire risk as to its quality and accuracy. + +This software is copyright (C) 1991-2020, Thomas G. Lane, Guido Vollbeding. +All Rights Reserved except as specified below. + +Permission is hereby granted to use, copy, modify, and distribute this +software (or portions thereof) for any purpose, without fee, subject to these +conditions: +(1) If any part of the source code for this software is distributed, then this +README file must be included, with this copyright and no-warranty notice +unaltered; and any additions, deletions, or changes to the original files +must be clearly indicated in accompanying documentation. +(2) If only executable code is distributed, then the accompanying +documentation must state that "this software is based in part on the work of +the Independent JPEG Group". +(3) Permission for use of this software is granted only if the user accepts +full responsibility for any undesirable consequences; the authors accept +NO LIABILITY for damages of any kind. + +These conditions apply to any software derived from or based on the IJG code, +not just to the unmodified library. If you use our work, you ought to +acknowledge us. + +Permission is NOT granted for the use of any IJG author's name or company name +in advertising or publicity relating to this software or products derived from +it. This software may be referred to only as "the Independent JPEG Group's +software". + +We specifically permit and encourage the use of this software as the basis of +commercial products, provided that all warranty or liability claims are +assumed by the product vendor. + + +---- + +LIBLZMA + +XZ Utils Licensing +================== + + Different licenses apply to different files in this package. Here + is a rough summary of which licenses apply to which parts of this + package (but check the individual files to be sure!): + + - liblzma is in the public domain. + + - xz, xzdec, and lzmadec command line tools are in the public + domain unless GNU getopt_long had to be compiled and linked + in from the lib directory. The getopt_long code is under + GNU LGPLv2.1+. + + - The scripts to grep, diff, and view compressed files have been + adapted from gzip. These scripts and their documentation are + under GNU GPLv2+. + + - All the documentation in the doc directory and most of the + XZ Utils specific documentation files in other directories + are in the public domain. + + - Translated messages are in the public domain. + + - The build system contains public domain files, and files that + are under GNU GPLv2+ or GNU GPLv3+. None of these files end up + in the binaries being built. + + - Test files and test code in the tests directory, and debugging + utilities in the debug directory are in the public domain. + + - The extra directory may contain public domain files, and files + that are under various free software licenses. + + You can do whatever you want with the files that have been put into + the public domain. If you find public domain legally problematic, + take the previous sentence as a license grant. If you still find + the lack of copyright legally problematic, you have too many + lawyers. + + As usual, this software is provided "as is", without any warranty. + + If you copy significant amounts of public domain code from XZ Utils + into your project, acknowledging this somewhere in your software is + polite (especially if it is proprietary, non-free software), but + naturally it is not legally required. Here is an example of a good + notice to put into "about box" or into documentation: + + This software includes code from XZ Utils . + + The following license texts are included in the following files: + - COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1 + - COPYING.GPLv2: GNU General Public License version 2 + - COPYING.GPLv3: GNU General Public License version 3 + + Note that the toolchain (compiler, linker etc.) may add some code + pieces that are copyrighted. Thus, it is possible that e.g. liblzma + binary wouldn't actually be in the public domain in its entirety + even though it contains no copyrighted code from the XZ Utils source + package. + + If you have questions, don't hesitate to ask the author(s) for more + information. + + +---- + +LIBPNG + +COPYRIGHT NOTICE, DISCLAIMER, and LICENSE +========================================= + +PNG Reference Library License version 2 +--------------------------------------- + + * Copyright (c) 1995-2022 The PNG Reference Library Authors. + * Copyright (c) 2018-2022 Cosmin Truta. + * Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson. + * Copyright (c) 1996-1997 Andreas Dilger. + * Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. + +The software is supplied "as is", without warranty of any kind, +express or implied, including, without limitation, the warranties +of merchantability, fitness for a particular purpose, title, and +non-infringement. In no event shall the Copyright owners, or +anyone distributing the software, be liable for any damages or +other liability, whether in contract, tort or otherwise, arising +from, out of, or in connection with the software, or the use or +other dealings in the software, even if advised of the possibility +of such damage. + +Permission is hereby granted to use, copy, modify, and distribute +this software, or portions hereof, for any purpose, without fee, +subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you + must not claim that you wrote the original software. If you + use this software in a product, an acknowledgment in the product + documentation would be appreciated, but is not required. + + 2. Altered source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + + +PNG Reference Library License version 1 (for libpng 0.5 through 1.6.35) +----------------------------------------------------------------------- + +libpng versions 1.0.7, July 1, 2000, through 1.6.35, July 15, 2018 are +Copyright (c) 2000-2002, 2004, 2006-2018 Glenn Randers-Pehrson, are +derived from libpng-1.0.6, and are distributed according to the same +disclaimer and license as libpng-1.0.6 with the following individuals +added to the list of Contributing Authors: + + Simon-Pierre Cadieux + Eric S. Raymond + Mans Rullgard + Cosmin Truta + Gilles Vollant + James Yu + Mandar Sahastrabuddhe + Google Inc. + Vadim Barkov + +and with the following additions to the disclaimer: + + There is no warranty against interference with your enjoyment of + the library or against infringement. There is no warranty that our + efforts or the library will fulfill any of your particular purposes + or needs. This library is provided with all faults, and the entire + risk of satisfactory quality, performance, accuracy, and effort is + with the user. + +Some files in the "contrib" directory and some configure-generated +files that are distributed with libpng have other copyright owners, and +are released under other open source licenses. + +libpng versions 0.97, January 1998, through 1.0.6, March 20, 2000, are +Copyright (c) 1998-2000 Glenn Randers-Pehrson, are derived from +libpng-0.96, and are distributed according to the same disclaimer and +license as libpng-0.96, with the following individuals added to the +list of Contributing Authors: + + Tom Lane + Glenn Randers-Pehrson + Willem van Schaik + +libpng versions 0.89, June 1996, through 0.96, May 1997, are +Copyright (c) 1996-1997 Andreas Dilger, are derived from libpng-0.88, +and are distributed according to the same disclaimer and license as +libpng-0.88, with the following individuals added to the list of +Contributing Authors: + + John Bowler + Kevin Bracey + Sam Bushell + Magnus Holmgren + Greg Roelofs + Tom Tanner + +Some files in the "scripts" directory have other copyright owners, +but are released under this license. + +libpng versions 0.5, May 1995, through 0.88, January 1996, are +Copyright (c) 1995-1996 Guy Eric Schalnat, Group 42, Inc. + +For the purposes of this copyright and license, "Contributing Authors" +is defined as the following set of individuals: + + Andreas Dilger + Dave Martindale + Guy Eric Schalnat + Paul Schmidt + Tim Wegner + +The PNG Reference Library is supplied "AS IS". The Contributing +Authors and Group 42, Inc. disclaim all warranties, expressed or +implied, including, without limitation, the warranties of +merchantability and of fitness for any purpose. The Contributing +Authors and Group 42, Inc. assume no liability for direct, indirect, +incidental, special, exemplary, or consequential damages, which may +result from the use of the PNG Reference Library, even if advised of +the possibility of such damage. + +Permission is hereby granted to use, copy, modify, and distribute this +source code, or portions hereof, for any purpose, without fee, subject +to the following restrictions: + + 1. The origin of this source code must not be misrepresented. + + 2. Altered versions must be plainly marked as such and must not + be misrepresented as being the original source. + + 3. This Copyright notice may not be removed or altered from any + source or altered source distribution. + +The Contributing Authors and Group 42, Inc. specifically permit, +without fee, and encourage the use of this source code as a component +to supporting the PNG file format in commercial products. If you use +this source code in a product, acknowledgment is not required but would +be appreciated. + + +---- + +LIBTIFF + +Copyright (c) 1988-1997 Sam Leffler +Copyright (c) 1991-1997 Silicon Graphics, Inc. + +Permission to use, copy, modify, distribute, and sell this software and +its documentation for any purpose is hereby granted without fee, provided +that (i) the above copyright notices and this permission notice appear in +all copies of the software and related documentation, and (ii) the names of +Sam Leffler and Silicon Graphics may not be used in any advertising or +publicity relating to the software without the specific, prior written +permission of Sam Leffler and Silicon Graphics. + +THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, +EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY +WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + +IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR +ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, +OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, +WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF +LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE +OF THIS SOFTWARE. + + +---- + +LIBWEBP + +Copyright (c) 2010, Google Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + + * Neither the name of Google nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +---- + +OPENJPEG + +* + * The copyright in this software is being made available under the 2-clauses + * BSD License, included below. This software may be subject to other third + * party and contributor rights, including patent rights, and no such rights + * are granted under this license. + * + * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium + * Copyright (c) 2002-2014, Professor Benoit Macq + * Copyright (c) 2003-2014, Antonin Descampe + * Copyright (c) 2003-2009, Francois-Olivier Devaux + * Copyright (c) 2005, Herve Drolon, FreeImage Team + * Copyright (c) 2002-2003, Yannick Verschueren + * Copyright (c) 2001-2003, David Janssens + * Copyright (c) 2011-2012, Centre National d'Etudes Spatiales (CNES), France + * Copyright (c) 2012, CS Systemes d'Information, France + * + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS `AS IS' + * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + */ + + +---- + +RAQM + +The MIT License (MIT) + +Copyright © 2015 Information Technology Authority (ITA) +Copyright © 2016 Khaled Hosny + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +---- + +XAU + +Copyright 1988, 1993, 1994, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + + +---- + +XCB + +Copyright (C) 2001-2006 Bart Massey, Jamey Sharp, and Josh Triplett. +All Rights Reserved. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, +sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall +be included in all copies or substantial portions of the +Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY +KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the names of the authors +or their institutions shall not be used in advertising or +otherwise to promote the sale, use or other dealings in this +Software without prior written authorization from the +authors. + + +---- + +XDMCP + +Copyright 1989, 1998 The Open Group + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that +copyright notice and this permission notice appear in supporting +documentation. + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Except as contained in this notice, the name of The Open Group shall not be +used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from The Open Group. + +Author: Keith Packard, MIT X Consortium + + +---- + +ZLIB + + (C) 1995-2017 Jean-loup Gailly and Mark Adler + + This software is provided 'as-is', without any express or implied + warranty. In no event will the authors be held liable for any damages + arising from the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software + in a product, an acknowledgment in the product documentation would be + appreciated but is not required. + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + 3. This notice may not be removed or altered from any source distribution. + + Jean-loup Gailly Mark Adler + jloup@gzip.org madler@alumni.caltech.edu + +If you use the zlib library in a product, we would appreciate *not* receiving +lengthy legal documents to sign. The sources are provided for free but without +warranty of any kind. The library has been entirely written by Jean-loup +Gailly and Mark Adler; it does not include third-party code. + +If you redistribute modified sources, we would appreciate that you include in +the file ChangeLog history information documenting your changes. Please read +the FAQ for more information on the distribution of modified source versions. diff --git a/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/METADATA b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..79dc8f1e07779bb0233f3600aa514acdbd378c19 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/METADATA @@ -0,0 +1,175 @@ +Metadata-Version: 2.1 +Name: pillow +Version: 10.4.0 +Summary: Python Imaging Library (Fork) +Author-email: "Jeffrey A. Clark" +License: HPND +Project-URL: Changelog, https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst +Project-URL: Documentation, https://pillow.readthedocs.io +Project-URL: Funding, https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=pypi +Project-URL: Homepage, https://python-pillow.org +Project-URL: Mastodon, https://fosstodon.org/@pillow +Project-URL: Release notes, https://pillow.readthedocs.io/en/stable/releasenotes/index.html +Project-URL: Source, https://github.com/python-pillow/Pillow +Keywords: Imaging +Classifier: Development Status :: 6 - Mature +Classifier: License :: OSI Approved :: Historical Permission Notice and Disclaimer (HPND) +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Topic :: Multimedia :: Graphics +Classifier: Topic :: Multimedia :: Graphics :: Capture :: Digital Camera +Classifier: Topic :: Multimedia :: Graphics :: Capture :: Screen Capture +Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion +Classifier: Topic :: Multimedia :: Graphics :: Viewers +Classifier: Typing :: Typed +Requires-Python: >=3.8 +Description-Content-Type: text/markdown +License-File: LICENSE +Provides-Extra: docs +Requires-Dist: furo ; extra == 'docs' +Requires-Dist: olefile ; extra == 'docs' +Requires-Dist: sphinx >=7.3 ; extra == 'docs' +Requires-Dist: sphinx-copybutton ; extra == 'docs' +Requires-Dist: sphinx-inline-tabs ; extra == 'docs' +Requires-Dist: sphinxext-opengraph ; extra == 'docs' +Provides-Extra: fpx +Requires-Dist: olefile ; extra == 'fpx' +Provides-Extra: mic +Requires-Dist: olefile ; extra == 'mic' +Provides-Extra: tests +Requires-Dist: check-manifest ; extra == 'tests' +Requires-Dist: coverage ; extra == 'tests' +Requires-Dist: defusedxml ; extra == 'tests' +Requires-Dist: markdown2 ; extra == 'tests' +Requires-Dist: olefile ; extra == 'tests' +Requires-Dist: packaging ; extra == 'tests' +Requires-Dist: pyroma ; extra == 'tests' +Requires-Dist: pytest ; extra == 'tests' +Requires-Dist: pytest-cov ; extra == 'tests' +Requires-Dist: pytest-timeout ; extra == 'tests' +Provides-Extra: typing +Requires-Dist: typing-extensions ; (python_version < "3.10") and extra == 'typing' +Provides-Extra: xmp +Requires-Dist: defusedxml ; extra == 'xmp' + +

+ Pillow logo +

+ +# Pillow + +## Python Imaging Library (Fork) + +Pillow is the friendly PIL fork by [Jeffrey A. Clark and +contributors](https://github.com/python-pillow/Pillow/graphs/contributors). +PIL is the Python Imaging Library by Fredrik Lundh and contributors. +As of 2019, Pillow development is +[supported by Tidelift](https://tidelift.com/subscription/pkg/pypi-pillow?utm_source=pypi-pillow&utm_medium=readme&utm_campaign=enterprise). + + + + + + + + + + + + + + + + + + +
docs + Documentation Status +
tests + GitHub Actions build status (Lint) + GitHub Actions build status (Test Linux and macOS) + GitHub Actions build status (Test Windows) + GitHub Actions build status (Test MinGW) + GitHub Actions build status (Test Cygwin) + GitHub Actions build status (Test Docker) + AppVeyor CI build status (Windows) + GitHub Actions build status (Wheels) + Code coverage + Fuzzing Status +
package + Zenodo + Tidelift + Newest PyPI version + Number of PyPI downloads + OpenSSF Best Practices +
social + Join the chat at https://gitter.im/python-pillow/Pillow + Follow on https://fosstodon.org/@pillow +
+ +## Overview + +The Python Imaging Library adds image processing capabilities to your Python interpreter. + +This library provides extensive file format support, an efficient internal representation, and fairly powerful image processing capabilities. + +The core image library is designed for fast access to data stored in a few basic pixel formats. It should provide a solid foundation for a general image processing tool. + +## More Information + +- [Documentation](https://pillow.readthedocs.io/) + - [Installation](https://pillow.readthedocs.io/en/latest/installation/basic-installation.html) + - [Handbook](https://pillow.readthedocs.io/en/latest/handbook/index.html) +- [Contribute](https://github.com/python-pillow/Pillow/blob/main/.github/CONTRIBUTING.md) + - [Issues](https://github.com/python-pillow/Pillow/issues) + - [Pull requests](https://github.com/python-pillow/Pillow/pulls) +- [Release notes](https://pillow.readthedocs.io/en/stable/releasenotes/index.html) +- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) + - [Pre-fork](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#pre-fork) + +## Report a Vulnerability + +To report a security vulnerability, please follow the procedure described in the [Tidelift security policy](https://tidelift.com/docs/security). diff --git a/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/RECORD b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..85584a22019c4de0fdd2ea11e59336bf5db48aab --- /dev/null +++ b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/RECORD @@ -0,0 +1,230 @@ +PIL/BdfFontFile.py,sha256=Hnlsd7gTtt7gaY1ilXHP-co5ehkBQ8xml942d06MEno,3477 +PIL/BlpImagePlugin.py,sha256=nWYUT5yejxCpxAl9oAUHaA89Et8CqJ7OGgIwcMI-B40,16366 +PIL/BmpImagePlugin.py,sha256=RtDGvt7CrktXhjkCvBMDtwopCYwojwG_Z5m706RTxIs,18565 +PIL/BufrStubImagePlugin.py,sha256=PcwNafLqxrQ_RTsz7hAqfpLWcQHT-kXKYPLaB46ZtUA,1753 +PIL/ContainerIO.py,sha256=0lHPzJmOqWx2XK_oBQeiwBbr8Y6xT182Y72q_yj6wIo,3181 +PIL/CurImagePlugin.py,sha256=sBx86STAUlA-_akYanPSYN2fl5ArGHHOpUjQKwfYHSI,1764 +PIL/DcxImagePlugin.py,sha256=K70qkwz-e3nkgjftD5pIElMcU2klHWFTKbINlwgeQ24,2034 +PIL/DdsImagePlugin.py,sha256=Ij3vOfKqU0wh60SaE1Doqo3y7BM4sHpkQYTbHGdGdlc,16914 +PIL/EpsImagePlugin.py,sha256=7E2GwPy9qdqLxhiGiQg5PpIMtRLaJf2sQ3cM_OEVwqU,16136 +PIL/ExifTags.py,sha256=bMq60WOnExBhe-5A_in04puhqZq4E3Bgt5e5k5Hre-o,9753 +PIL/FitsImagePlugin.py,sha256=K0SDAgyb9AR6qSEsEJPeysuTacCgfaJU8sCcNaiKMtE,4593 +PIL/FliImagePlugin.py,sha256=2qnMYLNrLrPO5jCGM48oJCMQs2veXjy5ZTig2UDR5rE,4611 +PIL/FontFile.py,sha256=St7MxO5Q-oakCLWn3ZrgrtaT3wSsmAarxm8AU-G8Moc,3577 +PIL/FpxImagePlugin.py,sha256=8pIIfMdyIcREPakLaMcDVad99ha-6t3daADwcxGKwok,7060 +PIL/FtexImagePlugin.py,sha256=2sF3hZrbjn2Fx5Lb5fV-8YT-06qu6KEoKR8M1QG2P_c,3502 +PIL/GbrImagePlugin.py,sha256=0yR3E8-BJL773L05aAK4SRJ2NtV-6VzG4SxmojLrh-0,2968 +PIL/GdImageFile.py,sha256=bHdFfO9rqxiBI9hLpJQVRv0rLj1boWc-nea9rFgIBVs,2795 +PIL/GifImagePlugin.py,sha256=PYeLvZlA0sx1FKUYL3T7ce-qUf5ZLamYq66UcTLgCWs,39745 +PIL/GimpGradientFile.py,sha256=ABNhtD50Gv82Dn1VxbdgfSIz3Q2_nPiv_zDquOYyVAw,3898 +PIL/GimpPaletteFile.py,sha256=mK8RqdS7Ae9W7gZ7NB7MkyzuOqhC6Z09_OsLkxCJoak,1427 +PIL/GribStubImagePlugin.py,sha256=hzsipSut7wvQ14P5fx7mkGtLj2TWKZk7OwSiFstB194,1747 +PIL/Hdf5StubImagePlugin.py,sha256=6bSeB8RJaWqdU3-xwnJIWtGBZjpM0QnpcM8974UWN90,1750 +PIL/IcnsImagePlugin.py,sha256=YsmWyyeqIwbRlfM9yHK2NqSgIqezE43cTjXV023NlSM,12006 +PIL/IcoImagePlugin.py,sha256=nTE5xojDHCOYgQ0DKFh1Rvsat7qe7Lhbln-FYL6EpTY,11787 +PIL/ImImagePlugin.py,sha256=WgT9fO2MOj7NtKiTA3kx7FcD1-ekh0srcokYWm9COnU,11120 +PIL/Image.py,sha256=gPJ52HARC4Rx_-beeVYC9H0sJfRbiF5HTeE2i0aNG7Y,142522 +PIL/ImageChops.py,sha256=GEjlymcoDtA5OOeIxQVIX96BD-s6AXhb7TmSLYn2tUg,7946 +PIL/ImageCms.py,sha256=J6KTaQ3301Vyk35d99I-ZqvtTmCj1RC-Vz1e-BKjVH0,42024 +PIL/ImageColor.py,sha256=IGA9C2umeED_EzS2Cvj6KsU0VutC9RstWIYPe8uDsVk,9441 +PIL/ImageDraw.py,sha256=0en6U820tXtUfpEvawuVO_2qYZyu-q_W-OOZmgu-ZN8,41322 +PIL/ImageDraw2.py,sha256=3pDY-NrZeZuMjUzou8aKCZp1hH-eD-Wa726omwH2JpQ,6023 +PIL/ImageEnhance.py,sha256=kU1z5JhgqA4BVsWcLuvdop0oCnSGviONP31csQlR-xY,3383 +PIL/ImageFile.py,sha256=5SofGUBtuftZbFP-MgVpr68Wva7exBJ6LNVAx2z6qSg,25037 +PIL/ImageFilter.py,sha256=Lp2XmabZOZRg6OBoqIrwukc0xl-Uqa7HxI2EoYWKCbg,18670 +PIL/ImageFont.py,sha256=1s8appa__nJyGEzylzHotRqiMC7jBj-iE13Z65vgAYo,62067 +PIL/ImageGrab.py,sha256=B0ujDFUOCKusImJtXtMXXqKbs9YKr21ujfIt1hSy8qQ,6358 +PIL/ImageMath.py,sha256=6lPulaD5geLyF7w5oxXVvH8nC_-YD9FXQ0SqRxJsJGQ,11478 +PIL/ImageMode.py,sha256=5yOxODAZ7jG03DsUFrt7eQayTtIpWPgvfyhlXDWwcv8,2681 +PIL/ImageMorph.py,sha256=c2WliTO5k1PAAFet31W4hmTBDXgbN85TflwnOHIZrjA,8555 +PIL/ImageOps.py,sha256=-C-zNKyvf2lBNyEYhxeb_dkIyB0F0GJZzQgz-uVGXEg,25012 +PIL/ImagePalette.py,sha256=XDRJOGI6hj8pjfgJBGPb4AWKEXaCf92etcFWgpM3VHs,8970 +PIL/ImagePath.py,sha256=5yUG5XCUil1KKTTA_8PgGhcmg-mnue-GK0FwTBlhjw4,371 +PIL/ImageQt.py,sha256=k7QCXKgiY5IexiJcSfKy6izQyz08rXbGnA2n3k7Pnts,5906 +PIL/ImageSequence.py,sha256=j-i3HxuBqkVFPPZSRerCeRlkAYG0orFkWc9mG5IhYSM,2192 +PIL/ImageShow.py,sha256=CX0WcFt6gcwMzbt-RjIsj5zJlQzhck0QzoDJcSjclbk,10028 +PIL/ImageStat.py,sha256=S43FZ89r_u4hKCj59lVuWpyVJfhbUy3igXkp9DwaMgM,5325 +PIL/ImageTk.py,sha256=-YvO5Twy4ExL8laDQZq2Q3iD02O7OfAdxtz_QCfgLmI,8609 +PIL/ImageTransform.py,sha256=Ni41_73Wi1p6fXn37qpGFifvmnbqDjgNPpLXhd4i-AI,3859 +PIL/ImageWin.py,sha256=elLKj_3cHyUKNAj3x-T3irSynePWJiy-BqqMVX6Z4Mk,7523 +PIL/ImtImagePlugin.py,sha256=akFpmHvG8zULUaIzm97hjf4DvHNtwqv743cFivFZ8bA,2658 +PIL/IptcImagePlugin.py,sha256=qyOg_ECIuWLBIEwOSxnAsEqIUixOmdjBfh9Y230SKVE,6135 +PIL/Jpeg2KImagePlugin.py,sha256=bBvBCc6fFmzoed9C_px6G2ODv-6bLC4fLGxqaFLfjX8,12401 +PIL/JpegImagePlugin.py,sha256=S7pIvPg79UzVGXLjEdkUUrYXMPauF46Hu5tJ71YsFSo,29859 +PIL/JpegPresets.py,sha256=WBNUfD0CpQsEEtCPmELxmdFqBAJ6xN5RrYz4QqMfmK0,12422 +PIL/McIdasImagePlugin.py,sha256=8ILYNfntSiZzzNuBD2Q4UQtjj3sIywPHVI4EeVXxJIo,1901 +PIL/MicImagePlugin.py,sha256=ZGO3fHxD86oc_38y647Qd6875-13iycuzwhcdA3Bfso,2667 +PIL/MpegImagePlugin.py,sha256=AplKMsPC9Y9ExJfqTE_xlm8TW-CSx578NGQWyVcmIiQ,2100 +PIL/MpoImagePlugin.py,sha256=hjrpIRKF2UlnqD86i0g8qam5eStU-24J5jha__rlnWM,5847 +PIL/MspImagePlugin.py,sha256=cuu46H15nZY-uT643KGLS9hS8pLRzT1fQMKTAlXVmMA,5836 +PIL/PSDraw.py,sha256=xn_HgAAqVZj6hk1oICB5GjDPXcSIGzyHaB06cgozpXk,6983 +PIL/PaletteFile.py,sha256=rC4YrlwwpJtl7RdPDnfl21HR4Vge3cAUw5Z6zicBqIk,1211 +PIL/PalmImagePlugin.py,sha256=ejCFU4C0ZhCcvfzUWL4h8_meLlnMA2czTgEXTCJl1p0,9284 +PIL/PcdImagePlugin.py,sha256=BXsw4s68ByoQMD1UQjdoPkMQ3M41u_sDclZgKyUPDws,1623 +PIL/PcfFontFile.py,sha256=NPZQ0XkbGB8uTlGqgmIPGkwuLMYBdykDeVuvFgIC7JU,7147 +PIL/PcxImagePlugin.py,sha256=yNHdqCpKMku4j2yh2A32EYERwJhPcr8_E-7McV4fr6I,6217 +PIL/PdfImagePlugin.py,sha256=73vHq63tW4EsSiysSURmX96NhOOtKCKjp1Z18W4Eqe0,8916 +PIL/PdfParser.py,sha256=zqeVzciNGv3AIbYKw386D6gx_AVDwg9Z9D0bTjbCTfA,34869 +PIL/PixarImagePlugin.py,sha256=4ua-rSZO8m76N0GK_Z5OVEqtORmNK47he22GEaUiyxI,1746 +PIL/PngImagePlugin.py,sha256=ZciuIznkaF3Ro6Oecv7iKfdwvZ96WCZtTAcHAJXC2FY,48566 +PIL/PpmImagePlugin.py,sha256=FBiEI-l93MquYwCPRl8J-LkrE-EUcdlzQtDaUgZzIy0,12216 +PIL/PsdImagePlugin.py,sha256=UZY8pYFq3RGXMkkvttzqLcBQwAeucUBK_9lthX_0AGw,8289 +PIL/PyAccess.py,sha256=nI1CO15048im3-Ui9q6KqwacZEtsN3Q_GFwyYVaS5sI,10843 +PIL/QoiImagePlugin.py,sha256=dK8g8ClweWcmRdoLadp1fb7Qn0ccTqKlqWIBnpoTCig,4146 +PIL/SgiImagePlugin.py,sha256=FRcHgPE9z3wf-6vmovvo0Han-Mi05uhR-cC40A4Xm84,6445 +PIL/SpiderImagePlugin.py,sha256=xQaLV9Z0gpxYeLkn7JyVVK_OO7NBfh7N7lBZi8t6CgU,10054 +PIL/SunImagePlugin.py,sha256=cIl8g1mDTT7mwYlp-PswH7AHxdrTf8g7CyiLcMlqUUA,4499 +PIL/TarIO.py,sha256=gh19oHdyVhgKniKSDsEB2GxiMDT5lgAZfUs-pUQFaWw,1584 +PIL/TgaImagePlugin.py,sha256=QKasL7zyr5MZ1POvk71RN8Y7O-q9GHqLKbKqd6BM44w,6942 +PIL/TiffImagePlugin.py,sha256=p0i8JZXBtdB_HPuO_7mWFg9hWtr3UcUnkTztClbY-i0,78228 +PIL/TiffTags.py,sha256=JeQ9iZH5Vx9rbDhlVO2ETFJgzLdMPfbUbPmTZ345dmo,16715 +PIL/WalImageFile.py,sha256=OQ07uBmbAyrKUjxXtLbdv29B6TlSU3EsidJiAH6HuQY,5563 +PIL/WebPImagePlugin.py,sha256=0dSTsc_8UB75Wo0zooXiKbAedCop97fhjDapVwc6QDs,11528 +PIL/WmfImagePlugin.py,sha256=uZAyCbpr2QANes5CpHQedWM0fCSJarMS8nlrQMKhXkQ,4983 +PIL/XVThumbImagePlugin.py,sha256=NbTby5A2QdDemhe6uDFfV1R1gmbpbxWV_-62h0sNyXU,2081 +PIL/XbmImagePlugin.py,sha256=X-osASZoiQp7kje0bk2ROFEBzkgciiLnfqOziA7HUtA,2649 +PIL/XpmImagePlugin.py,sha256=M9Z4vEuxuQwKypkibk-_dJThrRFI0KkLFEpNGpxs78o,3219 +PIL/__init__.py,sha256=fJUwPGhI8_mcB8jNWD-hUw7MiMJyWgqVX_nFtzIj1Zs,2008 +PIL/__main__.py,sha256=Lpj4vef8mI7jA1sRCUAoVYaeePD_Uc898xF5c7XLx1A,133 +PIL/__pycache__/BdfFontFile.cpython-310.pyc,, +PIL/__pycache__/BlpImagePlugin.cpython-310.pyc,, +PIL/__pycache__/BmpImagePlugin.cpython-310.pyc,, +PIL/__pycache__/BufrStubImagePlugin.cpython-310.pyc,, +PIL/__pycache__/ContainerIO.cpython-310.pyc,, +PIL/__pycache__/CurImagePlugin.cpython-310.pyc,, +PIL/__pycache__/DcxImagePlugin.cpython-310.pyc,, +PIL/__pycache__/DdsImagePlugin.cpython-310.pyc,, +PIL/__pycache__/EpsImagePlugin.cpython-310.pyc,, +PIL/__pycache__/ExifTags.cpython-310.pyc,, +PIL/__pycache__/FitsImagePlugin.cpython-310.pyc,, +PIL/__pycache__/FliImagePlugin.cpython-310.pyc,, +PIL/__pycache__/FontFile.cpython-310.pyc,, +PIL/__pycache__/FpxImagePlugin.cpython-310.pyc,, +PIL/__pycache__/FtexImagePlugin.cpython-310.pyc,, +PIL/__pycache__/GbrImagePlugin.cpython-310.pyc,, +PIL/__pycache__/GdImageFile.cpython-310.pyc,, +PIL/__pycache__/GifImagePlugin.cpython-310.pyc,, +PIL/__pycache__/GimpGradientFile.cpython-310.pyc,, +PIL/__pycache__/GimpPaletteFile.cpython-310.pyc,, +PIL/__pycache__/GribStubImagePlugin.cpython-310.pyc,, +PIL/__pycache__/Hdf5StubImagePlugin.cpython-310.pyc,, +PIL/__pycache__/IcnsImagePlugin.cpython-310.pyc,, +PIL/__pycache__/IcoImagePlugin.cpython-310.pyc,, +PIL/__pycache__/ImImagePlugin.cpython-310.pyc,, +PIL/__pycache__/Image.cpython-310.pyc,, +PIL/__pycache__/ImageChops.cpython-310.pyc,, +PIL/__pycache__/ImageCms.cpython-310.pyc,, +PIL/__pycache__/ImageColor.cpython-310.pyc,, +PIL/__pycache__/ImageDraw.cpython-310.pyc,, +PIL/__pycache__/ImageDraw2.cpython-310.pyc,, +PIL/__pycache__/ImageEnhance.cpython-310.pyc,, +PIL/__pycache__/ImageFile.cpython-310.pyc,, +PIL/__pycache__/ImageFilter.cpython-310.pyc,, +PIL/__pycache__/ImageFont.cpython-310.pyc,, +PIL/__pycache__/ImageGrab.cpython-310.pyc,, +PIL/__pycache__/ImageMath.cpython-310.pyc,, +PIL/__pycache__/ImageMode.cpython-310.pyc,, +PIL/__pycache__/ImageMorph.cpython-310.pyc,, +PIL/__pycache__/ImageOps.cpython-310.pyc,, +PIL/__pycache__/ImagePalette.cpython-310.pyc,, +PIL/__pycache__/ImagePath.cpython-310.pyc,, +PIL/__pycache__/ImageQt.cpython-310.pyc,, +PIL/__pycache__/ImageSequence.cpython-310.pyc,, +PIL/__pycache__/ImageShow.cpython-310.pyc,, +PIL/__pycache__/ImageStat.cpython-310.pyc,, +PIL/__pycache__/ImageTk.cpython-310.pyc,, +PIL/__pycache__/ImageTransform.cpython-310.pyc,, +PIL/__pycache__/ImageWin.cpython-310.pyc,, +PIL/__pycache__/ImtImagePlugin.cpython-310.pyc,, +PIL/__pycache__/IptcImagePlugin.cpython-310.pyc,, +PIL/__pycache__/Jpeg2KImagePlugin.cpython-310.pyc,, +PIL/__pycache__/JpegImagePlugin.cpython-310.pyc,, +PIL/__pycache__/JpegPresets.cpython-310.pyc,, +PIL/__pycache__/McIdasImagePlugin.cpython-310.pyc,, +PIL/__pycache__/MicImagePlugin.cpython-310.pyc,, +PIL/__pycache__/MpegImagePlugin.cpython-310.pyc,, +PIL/__pycache__/MpoImagePlugin.cpython-310.pyc,, +PIL/__pycache__/MspImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PSDraw.cpython-310.pyc,, +PIL/__pycache__/PaletteFile.cpython-310.pyc,, +PIL/__pycache__/PalmImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PcdImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PcfFontFile.cpython-310.pyc,, +PIL/__pycache__/PcxImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PdfImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PdfParser.cpython-310.pyc,, +PIL/__pycache__/PixarImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PngImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PpmImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PsdImagePlugin.cpython-310.pyc,, +PIL/__pycache__/PyAccess.cpython-310.pyc,, +PIL/__pycache__/QoiImagePlugin.cpython-310.pyc,, +PIL/__pycache__/SgiImagePlugin.cpython-310.pyc,, +PIL/__pycache__/SpiderImagePlugin.cpython-310.pyc,, +PIL/__pycache__/SunImagePlugin.cpython-310.pyc,, +PIL/__pycache__/TarIO.cpython-310.pyc,, +PIL/__pycache__/TgaImagePlugin.cpython-310.pyc,, +PIL/__pycache__/TiffImagePlugin.cpython-310.pyc,, +PIL/__pycache__/TiffTags.cpython-310.pyc,, +PIL/__pycache__/WalImageFile.cpython-310.pyc,, +PIL/__pycache__/WebPImagePlugin.cpython-310.pyc,, +PIL/__pycache__/WmfImagePlugin.cpython-310.pyc,, +PIL/__pycache__/XVThumbImagePlugin.cpython-310.pyc,, +PIL/__pycache__/XbmImagePlugin.cpython-310.pyc,, +PIL/__pycache__/XpmImagePlugin.cpython-310.pyc,, +PIL/__pycache__/__init__.cpython-310.pyc,, +PIL/__pycache__/__main__.cpython-310.pyc,, +PIL/__pycache__/_binary.cpython-310.pyc,, +PIL/__pycache__/_deprecate.cpython-310.pyc,, +PIL/__pycache__/_tkinter_finder.cpython-310.pyc,, +PIL/__pycache__/_typing.cpython-310.pyc,, +PIL/__pycache__/_util.cpython-310.pyc,, +PIL/__pycache__/_version.cpython-310.pyc,, +PIL/__pycache__/features.cpython-310.pyc,, +PIL/__pycache__/report.cpython-310.pyc,, +PIL/_binary.py,sha256=pcM6AL04GxgmGeLfcH1V1BZHENwIrQH0uxhJ7r0HIL0,2550 +PIL/_deprecate.py,sha256=Kt1jv0PTNdqqZksTO2g6XIXgnglkUv3ILRQ8nlP1IKc,2000 +PIL/_imaging.cpython-310-x86_64-linux-gnu.so,sha256=YeuauxMLM_zljygj7hNusih9LE9Nlr7A0oj1hUPw-l0,3045689 +PIL/_imaging.pyi,sha256=Km4dRUv7jeUTCkx89bsQgRPRe42z1oEGK69t35K-z0A,816 +PIL/_imagingcms.cpython-310-x86_64-linux-gnu.so,sha256=U4-L10dd7uqy4nwk5jOF4V_12_yNMJQbTnGqWdMJVC8,141305 +PIL/_imagingcms.pyi,sha256=2QvVeGteGKKAtMFizNgvkczRiVPoDL1PYDfEyZ1rPHI,4339 +PIL/_imagingft.cpython-310-x86_64-linux-gnu.so,sha256=aRc4qohieNR7FsEi1hyT2IL1uK_KRQyUsx41eipv1xY,281873 +PIL/_imagingft.pyi,sha256=kWCwmA5kqvoPOcVYTVZoNmKj9dWkrkXNvAU5tdsKPdY,1679 +PIL/_imagingmath.cpython-310-x86_64-linux-gnu.so,sha256=e5JOWgFjfe9dWGpyjqptk18YXE8UZJnP59_sMI8TNOw,149184 +PIL/_imagingmath.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +PIL/_imagingmorph.cpython-310-x86_64-linux-gnu.so,sha256=nDEIRZ91eOw6BDg_-NGlbQxxjoza4AgxD1wR3sZRFPU,37728 +PIL/_imagingmorph.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +PIL/_imagingtk.cpython-310-x86_64-linux-gnu.so,sha256=qhDLWRLl06TUAF9js82xixuJbmTQSe7xq49ldXOgleE,44232 +PIL/_tkinter_finder.py,sha256=CECvYrzWNc7BuzzR_mWZZKjPdADg6iRG8ilJToyjD3w,540 +PIL/_typing.py,sha256=CXp_0BHS0oosbzsAkgFzsn_jtWhFHjhexwyNDi_Vdr4,851 +PIL/_util.py,sha256=v7VPRZplBw3JU4o1ilkG5Fh2sSNF1kdRdjf1vhrxwKU,813 +PIL/_version.py,sha256=GCP8_FGnOYLQxdMV6rdu1229lOC_zIfYKf-6stQNJSE,87 +PIL/_webp.cpython-310-x86_64-linux-gnu.so,sha256=p2Cyd6cuyxI2zRhl468e_Z2AvVLoVXokCu2wcNIBGNw,96761 +PIL/_webp.pyi,sha256=3fBxcSppJr6EOEcUojvflG3Eegg7lv2Qp0dNQQILrP4,63 +PIL/features.py,sha256=WJTP33hgqKT88aRq0p3grRTE0K5wZ7fCI3pXRZI5dOM,10513 +PIL/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +PIL/report.py,sha256=4JY6-IU7sH1RKuRbOvy1fUt0dAoi79FX4tYJN3p1DT0,100 +pillow-10.4.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +pillow-10.4.0.dist-info/LICENSE,sha256=DO-Z-d_U91IsODM1lUFv-5YCPbK4M4_hCIpb_JdwUuQ,60073 +pillow-10.4.0.dist-info/METADATA,sha256=Lt2Tz2XQj1cpxT1CLZwdJXvg7v2TbIaveTvy6QphsQA,9167 +pillow-10.4.0.dist-info/RECORD,, +pillow-10.4.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +pillow-10.4.0.dist-info/WHEEL,sha256=jNzGoCTsMnGK_mE1T3SPtnOiPIxXJTeT1SrXgdfl0wA,113 +pillow-10.4.0.dist-info/top_level.txt,sha256=riZqrk-hyZqh5f1Z0Zwii3dKfxEsByhu9cU9IODF-NY,4 +pillow-10.4.0.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1 +pillow.libs/libXau-154567c4.so.6.0.0,sha256=BUhNJL94y47QMWnxywZyBNgpy3ryHeiCBADSnRFeQyA,22081 +pillow.libs/libbrotlicommon-3ecfe81c.so.1,sha256=AkvHYFUCz_1Fs_fD83_gQ2lMw7S0y385rzuacnk-TC4,144425 +pillow.libs/libbrotlidec-ba690955.so.1,sha256=qHImANFeNwTIVZqCSbgY9uMGBD4hJMAHvlXY3LPT2Xw,58225 +pillow.libs/libfreetype-be14bf51.so.6.20.1,sha256=KiF4qToQiuFFITKCWClquJanf19SDqKly2bXWDjML18,1422625 +pillow.libs/libharfbuzz-89381d8f.so.0.60850.0,sha256=M8OmZUrahqCzi1wrzY8W0F358qoVdbKop_njzyEc4gA,3426361 +pillow.libs/libjpeg-77ae51ab.so.62.4.0,sha256=YrlDd39g449t_KNpyWmK8qZyYGHt3gI9YkyuHgHRiN0,815793 +pillow.libs/liblcms2-e69eef39.so.2.0.16,sha256=UQTCSMFJmLMb4ysnVA7dF61pXYQknF8Zj48j1wO3Ca4,514977 +pillow.libs/liblzma-13fa198c.so.5.4.5,sha256=v4hBIG7N7aCw8rUQNhs0Esf3qskZdM5UApcqdWFMk00,270265 +pillow.libs/libopenjp2-05423b53.so,sha256=Lroq67mZpN4s9UHScYQnPp529VmcpoWJFepjv7W8PYw,581737 +pillow.libs/libpng16-58efbb84.so.16.43.0,sha256=k6oKmP5pSJD0Y5Ko1XHgFueUy9hwbZnnvNVd1GwgIiw,281913 +pillow.libs/libsharpyuv-898c0cb5.so.0.1.0,sha256=bLhOQVaHxGaIxoMVt2jDOIVPCDoe1xAzDyq9ctY67vI,42049 +pillow.libs/libtiff-0a86184d.so.6.0.2,sha256=EzI0Wc1W0bbmJI0ur2uQZnFZUQfdtUlQMyCK61vazSE,725697 +pillow.libs/libwebp-2fd3cdca.so.7.1.9,sha256=QYH5j5jfbAdui2eQ4oQKmpoIVmRDKASsLoL7u5RvB2c,759849 +pillow.libs/libwebpdemux-f2642bcc.so.2.0.15,sha256=83t-XUDOQwoi7xlQktfytthnjKQ_blF-b75-6cD1AUg,26121 +pillow.libs/libwebpmux-d524b4d5.so.3.1.0,sha256=AnH0cbAZq5ykA9uE2dBGt0aPMN4Bd-mddmtq76m5Y0o,54521 +pillow.libs/libxcb-b8a56d01.so.1.1.0,sha256=Yz7vOUQVQhxpfGuYa6ma3n98A2TVyKkOPeAaRNgkfxs,251425 diff --git a/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/WHEEL b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..fd671de750b4ff6e700310ca46ea61d0abd464c6 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: setuptools (70.1.1) +Root-Is-Purelib: false +Tag: cp310-cp310-manylinux_2_28_x86_64 + diff --git a/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/top_level.txt b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..b338169ce0c740c335bfe82912227ae8637bd492 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/pillow-10.4.0.dist-info/top_level.txt @@ -0,0 +1 @@ +PIL diff --git a/vllm/lib/python3.10/site-packages/torio/lib/_torio_ffmpeg6.so b/vllm/lib/python3.10/site-packages/torio/lib/_torio_ffmpeg6.so new file mode 100644 index 0000000000000000000000000000000000000000..300bf66eb159a4cf4b786d07fe25339d93d3c5fa --- /dev/null +++ b/vllm/lib/python3.10/site-packages/torio/lib/_torio_ffmpeg6.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:569b61c139e1f387729ed40ce3cb8f79c53045526bcad3cc5be9a1e6e249d72c +size 479712 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..cc11e7f3e299f4ce2ff611a68bbfa3992e45148d --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/__init__.py @@ -0,0 +1,10 @@ +from __future__ import annotations + +from .run import cli_run, session_via_cli +from .version import __version__ + +__all__ = [ + "__version__", + "cli_run", + "session_via_cli", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/__main__.py b/vllm/lib/python3.10/site-packages/virtualenv/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..f914b31b708203cef80fe29f1aab8e30d20d7177 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/__main__.py @@ -0,0 +1,73 @@ +from __future__ import annotations + +import logging +import os +import sys +from timeit import default_timer + +LOGGER = logging.getLogger(__name__) + + +def run(args=None, options=None, env=None): + env = os.environ if env is None else env + start = default_timer() + from virtualenv.run import cli_run # noqa: PLC0415 + from virtualenv.util.error import ProcessCallFailedError # noqa: PLC0415 + + if args is None: + args = sys.argv[1:] + try: + session = cli_run(args, options, env) + LOGGER.warning(LogSession(session, start)) + except ProcessCallFailedError as exception: + print(f"subprocess call failed for {exception.cmd} with code {exception.code}") # noqa: T201 + print(exception.out, file=sys.stdout, end="") # noqa: T201 + print(exception.err, file=sys.stderr, end="") # noqa: T201 + raise SystemExit(exception.code) # noqa: B904 + + +class LogSession: + def __init__(self, session, start) -> None: + self.session = session + self.start = start + + def __str__(self) -> str: + spec = self.session.creator.interpreter.spec + elapsed = (default_timer() - self.start) * 1000 + lines = [ + f"created virtual environment {spec} in {elapsed:.0f}ms", + f" creator {self.session.creator!s}", + ] + if self.session.seeder.enabled: + lines.append(f" seeder {self.session.seeder!s}") + path = self.session.creator.purelib.iterdir() + packages = sorted("==".join(i.stem.split("-")) for i in path if i.suffix == ".dist-info") + lines.append(f" added seed packages: {', '.join(packages)}") + + if self.session.activators: + lines.append(f" activators {','.join(i.__class__.__name__ for i in self.session.activators)}") + return "\n".join(lines) + + +def run_with_catch(args=None, env=None): + from virtualenv.config.cli.parser import VirtualEnvOptions # noqa: PLC0415 + + env = os.environ if env is None else env + options = VirtualEnvOptions() + try: + run(args, options, env) + except (KeyboardInterrupt, SystemExit, Exception) as exception: + try: + if getattr(options, "with_traceback", False): + raise + if not (isinstance(exception, SystemExit) and exception.code == 0): + LOGGER.error("%s: %s", type(exception).__name__, exception) # noqa: TRY400 + code = exception.code if isinstance(exception, SystemExit) else 1 + sys.exit(code) + finally: + for handler in LOGGER.handlers: # force flush of log messages before the trace is printed + handler.flush() + + +if __name__ == "__main__": # pragma: no cov + run_with_catch() # pragma: no cov diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..d7f1480237fce79a4323d98eef961e1d69b3ecee --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__init__.py @@ -0,0 +1,58 @@ +"""Application data stored by virtualenv.""" + +from __future__ import annotations + +import logging +import os + +from platformdirs import user_data_dir + +from .na import AppDataDisabled +from .read_only import ReadOnlyAppData +from .via_disk_folder import AppDataDiskFolder +from .via_tempdir import TempAppData + +LOGGER = logging.getLogger(__name__) + + +def _default_app_data_dir(env): + key = "VIRTUALENV_OVERRIDE_APP_DATA" + if key in env: + return env[key] + return user_data_dir(appname="virtualenv", appauthor="pypa") + + +def make_app_data(folder, **kwargs): + is_read_only = kwargs.pop("read_only") + env = kwargs.pop("env") + if kwargs: # py3+ kwonly + msg = "unexpected keywords: {}" + raise TypeError(msg) + + if folder is None: + folder = _default_app_data_dir(env) + folder = os.path.abspath(folder) + + if is_read_only: + return ReadOnlyAppData(folder) + + if not os.path.isdir(folder): + try: + os.makedirs(folder) + LOGGER.debug("created app data folder %s", folder) + except OSError as exception: + LOGGER.info("could not create app data folder %s due to %r", folder, exception) + + if os.access(folder, os.W_OK): + return AppDataDiskFolder(folder) + LOGGER.debug("app data folder %s has no write access", folder) + return TempAppData() + + +__all__ = ( + "AppDataDisabled", + "AppDataDiskFolder", + "ReadOnlyAppData", + "TempAppData", + "make_app_data", +) diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e69611caf0e10951fe041741a7b05ec11910a204 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/base.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/base.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bd72d7027ad58c899140be4bdaea522c9acff148 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/base.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/na.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/na.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e397c286b936b1801b1f9809060808f41b34695d Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/na.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/read_only.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/read_only.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d5cebc5c5c1e6ebf8b60cdd25a14bcd839345e4c Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/read_only.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/via_disk_folder.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/via_disk_folder.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2b20f2aed1f0c22bc4b092c0fa348f335807d2c6 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/via_disk_folder.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/via_tempdir.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/via_tempdir.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b7a5d596f8dd10f10732bb53c83c7ae0dd15c2c1 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/app_data/__pycache__/via_tempdir.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/base.py b/vllm/lib/python3.10/site-packages/virtualenv/app_data/base.py new file mode 100644 index 0000000000000000000000000000000000000000..2077deebdfdcb806966a5f98aa4032f49da69d51 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/app_data/base.py @@ -0,0 +1,96 @@ +"""Application data stored by virtualenv.""" + +from __future__ import annotations + +from abc import ABC, abstractmethod +from contextlib import contextmanager + +from virtualenv.info import IS_ZIPAPP + + +class AppData(ABC): + """Abstract storage interface for the virtualenv application.""" + + @abstractmethod + def close(self): + """Called before virtualenv exits.""" + + @abstractmethod + def reset(self): + """Called when the user passes in the reset app data.""" + + @abstractmethod + def py_info(self, path): + raise NotImplementedError + + @abstractmethod + def py_info_clear(self): + raise NotImplementedError + + @property + def can_update(self): + raise NotImplementedError + + @abstractmethod + def embed_update_log(self, distribution, for_py_version): + raise NotImplementedError + + @property + def house(self): + raise NotImplementedError + + @property + def transient(self): + raise NotImplementedError + + @abstractmethod + def wheel_image(self, for_py_version, name): + raise NotImplementedError + + @contextmanager + def ensure_extracted(self, path, to_folder=None): + """Some paths might be within the zipapp, unzip these to a path on the disk.""" + if IS_ZIPAPP: + with self.extract(path, to_folder) as result: + yield result + else: + yield path + + @abstractmethod + @contextmanager + def extract(self, path, to_folder): + raise NotImplementedError + + @abstractmethod + @contextmanager + def locked(self, path): + raise NotImplementedError + + +class ContentStore(ABC): + @abstractmethod + def exists(self): + raise NotImplementedError + + @abstractmethod + def read(self): + raise NotImplementedError + + @abstractmethod + def write(self, content): + raise NotImplementedError + + @abstractmethod + def remove(self): + raise NotImplementedError + + @abstractmethod + @contextmanager + def locked(self): + pass + + +__all__ = [ + "AppData", + "ContentStore", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/na.py b/vllm/lib/python3.10/site-packages/virtualenv/app_data/na.py new file mode 100644 index 0000000000000000000000000000000000000000..921e83a812e622256bd67cfa5bfdc21bcd5ee9c3 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/app_data/na.py @@ -0,0 +1,72 @@ +from __future__ import annotations + +from contextlib import contextmanager + +from .base import AppData, ContentStore + + +class AppDataDisabled(AppData): + """No application cache available (most likely as we don't have write permissions).""" + + transient = True + can_update = False + + def __init__(self) -> None: + pass + + error = RuntimeError("no app data folder available, probably no write access to the folder") + + def close(self): + """Do nothing.""" + + def reset(self): + """Do nothing.""" + + def py_info(self, path): # noqa: ARG002 + return ContentStoreNA() + + def embed_update_log(self, distribution, for_py_version): # noqa: ARG002 + return ContentStoreNA() + + def extract(self, path, to_folder): # noqa: ARG002 + raise self.error + + @contextmanager + def locked(self, path): # noqa: ARG002 + """Do nothing.""" + yield + + @property + def house(self): + raise self.error + + def wheel_image(self, for_py_version, name): # noqa: ARG002 + raise self.error + + def py_info_clear(self): + """Nothing to clear.""" + + +class ContentStoreNA(ContentStore): + def exists(self): + return False + + def read(self): + """Nothing to read.""" + return + + def write(self, content): + """Nothing to write.""" + + def remove(self): + """Nothing to remove.""" + + @contextmanager + def locked(self): + yield + + +__all__ = [ + "AppDataDisabled", + "ContentStoreNA", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/read_only.py b/vllm/lib/python3.10/site-packages/virtualenv/app_data/read_only.py new file mode 100644 index 0000000000000000000000000000000000000000..952dbad5a259e9e89bd7bea7934bdd55c971686b --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/app_data/read_only.py @@ -0,0 +1,42 @@ +from __future__ import annotations + +import os.path + +from virtualenv.util.lock import NoOpFileLock + +from .via_disk_folder import AppDataDiskFolder, PyInfoStoreDisk + + +class ReadOnlyAppData(AppDataDiskFolder): + can_update = False + + def __init__(self, folder: str) -> None: + if not os.path.isdir(folder): + msg = f"read-only app data directory {folder} does not exist" + raise RuntimeError(msg) + super().__init__(folder) + self.lock = NoOpFileLock(folder) + + def reset(self) -> None: + msg = "read-only app data does not support reset" + raise RuntimeError(msg) + + def py_info_clear(self) -> None: + raise NotImplementedError + + def py_info(self, path): + return _PyInfoStoreDiskReadOnly(self.py_info_at, path) + + def embed_update_log(self, distribution, for_py_version): + raise NotImplementedError + + +class _PyInfoStoreDiskReadOnly(PyInfoStoreDisk): + def write(self, content): # noqa: ARG002 + msg = "read-only app data python info cannot be updated" + raise RuntimeError(msg) + + +__all__ = [ + "ReadOnlyAppData", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/via_disk_folder.py b/vllm/lib/python3.10/site-packages/virtualenv/app_data/via_disk_folder.py new file mode 100644 index 0000000000000000000000000000000000000000..1c98a90daccf4d62302765a5a479b87414a5ad44 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/app_data/via_disk_folder.py @@ -0,0 +1,176 @@ +""" +A rough layout of the current storage goes as: + +virtualenv-app-data +├── py - +│ └── *.json/lock +├── wheel +│ ├── house +│ │ └── *.whl +│ └── -> 3.9 +│ ├── img- +│ │ └── image +│ │ └── -> CopyPipInstall / SymlinkPipInstall +│ │ └── -> pip-20.1.1-py2.py3-none-any +│ └── embed +│ └── 3 -> json format versioning +│ └── *.json -> for every distribution contains data about newer embed versions and releases +└─── unzip + └── + ├── py_info.py + ├── debug.py + └── _virtualenv.py +""" # noqa: D415 + +from __future__ import annotations + +import json +import logging +from abc import ABC +from contextlib import contextmanager, suppress +from hashlib import sha256 + +from virtualenv.util.lock import ReentrantFileLock +from virtualenv.util.path import safe_delete +from virtualenv.util.zipapp import extract +from virtualenv.version import __version__ + +from .base import AppData, ContentStore + +LOGGER = logging.getLogger(__name__) + + +class AppDataDiskFolder(AppData): + """Store the application data on the disk within a folder layout.""" + + transient = False + can_update = True + + def __init__(self, folder) -> None: + self.lock = ReentrantFileLock(folder) + + def __repr__(self) -> str: + return f"{type(self).__name__}({self.lock.path})" + + def __str__(self) -> str: + return str(self.lock.path) + + def reset(self): + LOGGER.debug("reset app data folder %s", self.lock.path) + safe_delete(self.lock.path) + + def close(self): + """Do nothing.""" + + @contextmanager + def locked(self, path): + path_lock = self.lock / path + with path_lock: + yield path_lock.path + + @contextmanager + def extract(self, path, to_folder): + root = ReentrantFileLock(to_folder()) if to_folder is not None else self.lock / "unzip" / __version__ + with root.lock_for_key(path.name): + dest = root.path / path.name + if not dest.exists(): + extract(path, dest) + yield dest + + @property + def py_info_at(self): + return self.lock / "py_info" / "2" + + def py_info(self, path): + return PyInfoStoreDisk(self.py_info_at, path) + + def py_info_clear(self): + """clear py info.""" + py_info_folder = self.py_info_at + with py_info_folder: + for filename in py_info_folder.path.iterdir(): + if filename.suffix == ".json": + with py_info_folder.lock_for_key(filename.stem): + if filename.exists(): + filename.unlink() + + def embed_update_log(self, distribution, for_py_version): + return EmbedDistributionUpdateStoreDisk(self.lock / "wheel" / for_py_version / "embed" / "3", distribution) + + @property + def house(self): + path = self.lock.path / "wheel" / "house" + path.mkdir(parents=True, exist_ok=True) + return path + + def wheel_image(self, for_py_version, name): + return self.lock.path / "wheel" / for_py_version / "image" / "1" / name + + +class JSONStoreDisk(ContentStore, ABC): + def __init__(self, in_folder, key, msg, msg_args) -> None: + self.in_folder = in_folder + self.key = key + self.msg = msg + self.msg_args = (*msg_args, self.file) + + @property + def file(self): + return self.in_folder.path / f"{self.key}.json" + + def exists(self): + return self.file.exists() + + def read(self): + data, bad_format = None, False + try: + data = json.loads(self.file.read_text(encoding="utf-8")) + except ValueError: + bad_format = True + except Exception: # noqa: BLE001, S110 + pass + else: + LOGGER.debug("got %s from %s", self.msg, self.msg_args) + return data + if bad_format: + with suppress(OSError): # reading and writing on the same file may cause race on multiple processes + self.remove() + return None + + def remove(self): + self.file.unlink() + LOGGER.debug("removed %s at %s", self.msg, self.msg_args) + + @contextmanager + def locked(self): + with self.in_folder.lock_for_key(self.key): + yield + + def write(self, content): + folder = self.file.parent + folder.mkdir(parents=True, exist_ok=True) + self.file.write_text(json.dumps(content, sort_keys=True, indent=2), encoding="utf-8") + LOGGER.debug("wrote %s at %s", self.msg, self.msg_args) + + +class PyInfoStoreDisk(JSONStoreDisk): + def __init__(self, in_folder, path) -> None: + key = sha256(str(path).encode("utf-8")).hexdigest() + super().__init__(in_folder, key, "python info of %s", (path,)) + + +class EmbedDistributionUpdateStoreDisk(JSONStoreDisk): + def __init__(self, in_folder, distribution) -> None: + super().__init__( + in_folder, + distribution, + "embed update of distribution %s", + (distribution,), + ) + + +__all__ = [ + "AppDataDiskFolder", + "JSONStoreDisk", + "PyInfoStoreDisk", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/app_data/via_tempdir.py b/vllm/lib/python3.10/site-packages/virtualenv/app_data/via_tempdir.py new file mode 100644 index 0000000000000000000000000000000000000000..884a570ce6daebbd17b057c94305f2497e82f228 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/app_data/via_tempdir.py @@ -0,0 +1,34 @@ +from __future__ import annotations + +import logging +from tempfile import mkdtemp + +from virtualenv.util.path import safe_delete + +from .via_disk_folder import AppDataDiskFolder + +LOGGER = logging.getLogger(__name__) + + +class TempAppData(AppDataDiskFolder): + transient = True + can_update = False + + def __init__(self) -> None: + super().__init__(folder=mkdtemp()) + LOGGER.debug("created temporary app data folder %s", self.lock.path) + + def reset(self): + """This is a temporary folder, is already empty to start with.""" + + def close(self): + LOGGER.debug("remove temporary app data folder %s", self.lock.path) + safe_delete(self.lock.path) + + def embed_update_log(self, distribution, for_py_version): + raise NotImplementedError + + +__all__ = [ + "TempAppData", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/config/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0b25ea5522023a924e0bd4f0bda1a4e1192f59a2 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/convert.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/convert.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..de35ac964391f10bf82240db27d8e8ed7b60f923 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/convert.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/env_var.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/env_var.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9edbcadf4313b1b154c87368ed69fca18e07ed99 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/env_var.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/ini.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/ini.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..29bd7c5e7a1eb5d4478d59a4f5791e95f01c087c Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/config/__pycache__/ini.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e585152d8b1f092d0d493efa8cf81a940ef92acd Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__pycache__/parser.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__pycache__/parser.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8c2b4da29dabc43a7132f068bc582a3a5f1d1a31 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/__pycache__/parser.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/cli/parser.py b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/parser.py new file mode 100644 index 0000000000000000000000000000000000000000..a1770f2ac4f4948fa6cb3955fcd166b26e2580b3 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/config/cli/parser.py @@ -0,0 +1,126 @@ +from __future__ import annotations # noqa: A005 + +import os +from argparse import SUPPRESS, ArgumentDefaultsHelpFormatter, ArgumentParser, Namespace +from collections import OrderedDict + +from virtualenv.config.convert import get_type +from virtualenv.config.env_var import get_env_var +from virtualenv.config.ini import IniConfig + + +class VirtualEnvOptions(Namespace): + def __init__(self, **kwargs) -> None: + super().__init__(**kwargs) + self._src = None + self._sources = {} + + def set_src(self, key, value, src): + setattr(self, key, value) + if src.startswith("env var"): + src = "env var" + self._sources[key] = src + + def __setattr__(self, key, value) -> None: + if getattr(self, "_src", None) is not None: + self._sources[key] = self._src + super().__setattr__(key, value) + + def get_source(self, key): + return self._sources.get(key) + + @property + def verbosity(self): + if not hasattr(self, "verbose") and not hasattr(self, "quiet"): + return None + return max(self.verbose - self.quiet, 0) + + def __repr__(self) -> str: + return f"{type(self).__name__}({', '.join(f'{k}={v}' for k, v in vars(self).items() if not k.startswith('_'))})" + + +class VirtualEnvConfigParser(ArgumentParser): + """Custom option parser which updates its defaults by checking the configuration files and environmental vars.""" + + def __init__(self, options=None, env=None, *args, **kwargs) -> None: + env = os.environ if env is None else env + self.file_config = IniConfig(env) + self.epilog_list = [] + self.env = env + kwargs["epilog"] = self.file_config.epilog + kwargs["add_help"] = False + kwargs["formatter_class"] = HelpFormatter + kwargs["prog"] = "virtualenv" + super().__init__(*args, **kwargs) + self._fixed = set() + if options is not None and not isinstance(options, VirtualEnvOptions): + msg = "options must be of type VirtualEnvOptions" + raise TypeError(msg) + self.options = VirtualEnvOptions() if options is None else options + self._interpreter = None + self._app_data = None + + def _fix_defaults(self): + for action in self._actions: + action_id = id(action) + if action_id not in self._fixed: + self._fix_default(action) + self._fixed.add(action_id) + + def _fix_default(self, action): + if hasattr(action, "default") and hasattr(action, "dest") and action.default != SUPPRESS: + as_type = get_type(action) + names = OrderedDict((i.lstrip("-").replace("-", "_"), None) for i in action.option_strings) + outcome = None + for name in names: + outcome = get_env_var(name, as_type, self.env) + if outcome is not None: + break + if outcome is None and self.file_config: + for name in names: + outcome = self.file_config.get(name, as_type) + if outcome is not None: + break + if outcome is not None: + action.default, action.default_source = outcome + else: + outcome = action.default, "default" + self.options.set_src(action.dest, *outcome) + + def enable_help(self): + self._fix_defaults() + self.add_argument("-h", "--help", action="help", default=SUPPRESS, help="show this help message and exit") + + def parse_known_args(self, args=None, namespace=None): + if namespace is None: + namespace = self.options + elif namespace is not self.options: + msg = "can only pass in parser.options" + raise ValueError(msg) + self._fix_defaults() + self.options._src = "cli" # noqa: SLF001 + try: + namespace.env = self.env + return super().parse_known_args(args, namespace=namespace) + finally: + self.options._src = None # noqa: SLF001 + + +class HelpFormatter(ArgumentDefaultsHelpFormatter): + def __init__(self, prog) -> None: + super().__init__(prog, max_help_position=32, width=240) + + def _get_help_string(self, action): + text = super()._get_help_string(action) + if hasattr(action, "default_source"): + default = " (default: %(default)s)" + if text.endswith(default): + text = f"{text[: -len(default)]} (default: %(default)s -> from %(default_source)s)" + return text + + +__all__ = [ + "HelpFormatter", + "VirtualEnvConfigParser", + "VirtualEnvOptions", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/convert.py b/vllm/lib/python3.10/site-packages/virtualenv/config/convert.py new file mode 100644 index 0000000000000000000000000000000000000000..ef7581dbd8a4a0224e6f5ef3dc69666684b3399a --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/config/convert.py @@ -0,0 +1,102 @@ +from __future__ import annotations + +import logging +import os +from typing import ClassVar + +LOGGER = logging.getLogger(__name__) + + +class TypeData: + def __init__(self, default_type, as_type) -> None: + self.default_type = default_type + self.as_type = as_type + + def __repr__(self) -> str: + return f"{self.__class__.__name__}(base={self.default_type}, as={self.as_type})" + + def convert(self, value): + return self.default_type(value) + + +class BoolType(TypeData): + BOOLEAN_STATES: ClassVar[dict[str, bool]] = { + "1": True, + "yes": True, + "true": True, + "on": True, + "0": False, + "no": False, + "false": False, + "off": False, + } + + def convert(self, value): + if value.lower() not in self.BOOLEAN_STATES: + msg = f"Not a boolean: {value}" + raise ValueError(msg) + return self.BOOLEAN_STATES[value.lower()] + + +class NoneType(TypeData): + def convert(self, value): + if not value: + return None + return str(value) + + +class ListType(TypeData): + def _validate(self): + """no op.""" + + def convert(self, value, flatten=True): # noqa: ARG002, FBT002 + values = self.split_values(value) + result = [] + for a_value in values: + sub_values = a_value.split(os.pathsep) + result.extend(sub_values) + return [self.as_type(i) for i in result] + + def split_values(self, value): + """ + Split the provided value into a list. + + First this is done by newlines. If there were no newlines in the text, + then we next try to split by comma. + """ + if isinstance(value, (str, bytes)): + # Use `splitlines` rather than a custom check for whether there is + # more than one line. This ensures that the full `splitlines()` + # logic is supported here. + values = value.splitlines() + if len(values) <= 1: + values = value.split(",") + values = filter(None, [x.strip() for x in values]) + else: + values = list(value) + + return values + + +def convert(value, as_type, source): + """Convert the value as a given type where the value comes from the given source.""" + try: + return as_type.convert(value) + except Exception as exception: + LOGGER.warning("%s failed to convert %r as %r because %r", source, value, as_type, exception) + raise + + +_CONVERT = {bool: BoolType, type(None): NoneType, list: ListType} + + +def get_type(action): + default_type = type(action.default) + as_type = default_type if action.type is None else action.type + return _CONVERT.get(default_type, TypeData)(default_type, as_type) + + +__all__ = [ + "convert", + "get_type", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/env_var.py b/vllm/lib/python3.10/site-packages/virtualenv/config/env_var.py new file mode 100644 index 0000000000000000000000000000000000000000..e1272347126bc914228c3a669dce849f7a05952b --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/config/env_var.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +from contextlib import suppress + +from .convert import convert + + +def get_env_var(key, as_type, env): + """ + Get the environment variable option. + + :param key: the config key requested + :param as_type: the type we would like to convert it to + :param env: environment variables to use + :return: + """ + environ_key = f"VIRTUALENV_{key.upper()}" + if env.get(environ_key): + value = env[environ_key] + + with suppress(Exception): # note the converter already logs a warning when failures happen + source = f"env var {environ_key}" + as_type = convert(value, as_type, source) + return as_type, source + return None + + +__all__ = [ + "get_env_var", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/config/ini.py b/vllm/lib/python3.10/site-packages/virtualenv/config/ini.py new file mode 100644 index 0000000000000000000000000000000000000000..ed0a1b930784971afa32505a9fe1592e62b743ee --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/config/ini.py @@ -0,0 +1,77 @@ +from __future__ import annotations + +import logging +import os +from configparser import ConfigParser +from pathlib import Path +from typing import ClassVar + +from platformdirs import user_config_dir + +from .convert import convert + +LOGGER = logging.getLogger(__name__) + + +class IniConfig: + VIRTUALENV_CONFIG_FILE_ENV_VAR: ClassVar[str] = "VIRTUALENV_CONFIG_FILE" + STATE: ClassVar[dict[bool | None, str]] = {None: "failed to parse", True: "active", False: "missing"} + + section = "virtualenv" + + def __init__(self, env=None) -> None: + env = os.environ if env is None else env + config_file = env.get(self.VIRTUALENV_CONFIG_FILE_ENV_VAR, None) + self.is_env_var = config_file is not None + if config_file is None: + config_file = Path(user_config_dir(appname="virtualenv", appauthor="pypa")) / "virtualenv.ini" + else: + config_file = Path(config_file) + self.config_file = config_file + self._cache = {} + + exception = None + self.has_config_file = None + try: + self.has_config_file = self.config_file.exists() + except OSError as exc: + exception = exc + else: + if self.has_config_file: + self.config_file = self.config_file.resolve() + self.config_parser = ConfigParser() + try: + self._load() + self.has_virtualenv_section = self.config_parser.has_section(self.section) + except Exception as exc: # noqa: BLE001 + exception = exc + if exception is not None: + LOGGER.error("failed to read config file %s because %r", config_file, exception) + + def _load(self): + with self.config_file.open("rt", encoding="utf-8") as file_handler: + return self.config_parser.read_file(file_handler) + + def get(self, key, as_type): + cache_key = key, as_type + if cache_key in self._cache: + return self._cache[cache_key] + try: + source = "file" + raw_value = self.config_parser.get(self.section, key.lower()) + value = convert(raw_value, as_type, source) + result = value, source + except Exception: # noqa: BLE001 + result = None + self._cache[cache_key] = result + return result + + def __bool__(self) -> bool: + return bool(self.has_config_file) and bool(self.has_virtualenv_section) + + @property + def epilog(self): + return ( + f"\nconfig file {self.config_file} {self.STATE[self.has_config_file]} " + f"(change{'d' if self.is_env_var else ''} via env var {self.VIRTUALENV_CONFIG_FILE_ENV_VAR})" + ) diff --git a/vllm/lib/python3.10/site-packages/virtualenv/create/__pycache__/creator.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/create/__pycache__/creator.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3df8eb05f5052be83db158fe665539082052110f Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/create/__pycache__/creator.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/create/__pycache__/pyenv_cfg.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/create/__pycache__/pyenv_cfg.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7affc6bce4b166954d8e9ad6d1a6f9f381543680 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/create/__pycache__/pyenv_cfg.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/info.py b/vllm/lib/python3.10/site-packages/virtualenv/info.py new file mode 100644 index 0000000000000000000000000000000000000000..6f8c2bdf331a400785020a51ab007e95984898d5 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/info.py @@ -0,0 +1,66 @@ +from __future__ import annotations + +import logging +import os +import platform +import sys +import tempfile + +IMPLEMENTATION = platform.python_implementation() +IS_PYPY = IMPLEMENTATION == "PyPy" +IS_CPYTHON = IMPLEMENTATION == "CPython" +IS_WIN = sys.platform == "win32" +IS_MAC_ARM64 = sys.platform == "darwin" and platform.machine() == "arm64" +ROOT = os.path.realpath(os.path.join(os.path.abspath(__file__), os.path.pardir, os.path.pardir)) +IS_ZIPAPP = os.path.isfile(ROOT) +_CAN_SYMLINK = _FS_CASE_SENSITIVE = _CFG_DIR = _DATA_DIR = None +LOGGER = logging.getLogger(__name__) + + +def fs_is_case_sensitive(): + global _FS_CASE_SENSITIVE # noqa: PLW0603 + + if _FS_CASE_SENSITIVE is None: + with tempfile.NamedTemporaryFile(prefix="TmP") as tmp_file: + _FS_CASE_SENSITIVE = not os.path.exists(tmp_file.name.lower()) + LOGGER.debug("filesystem is %scase-sensitive", "" if _FS_CASE_SENSITIVE else "not ") + return _FS_CASE_SENSITIVE + + +def fs_supports_symlink(): + global _CAN_SYMLINK # noqa: PLW0603 + + if _CAN_SYMLINK is None: + can = False + if hasattr(os, "symlink"): + if IS_WIN: + with tempfile.NamedTemporaryFile(prefix="TmP") as tmp_file: + temp_dir = os.path.dirname(tmp_file.name) + dest = os.path.join(temp_dir, f"{tmp_file.name}-{'b'}") + try: + os.symlink(tmp_file.name, dest) + can = True + except (OSError, NotImplementedError): + pass + LOGGER.debug("symlink on filesystem does%s work", "" if can else " not") + else: + can = True + _CAN_SYMLINK = can + return _CAN_SYMLINK + + +def fs_path_id(path: str) -> str: + return path.casefold() if fs_is_case_sensitive() else path + + +__all__ = ( + "IS_CPYTHON", + "IS_MAC_ARM64", + "IS_PYPY", + "IS_WIN", + "IS_ZIPAPP", + "ROOT", + "fs_is_case_sensitive", + "fs_path_id", + "fs_supports_symlink", +) diff --git a/vllm/lib/python3.10/site-packages/virtualenv/report.py b/vllm/lib/python3.10/site-packages/virtualenv/report.py new file mode 100644 index 0000000000000000000000000000000000000000..c9682a8f63393db2dea860a8a20027764d81e178 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/report.py @@ -0,0 +1,50 @@ +from __future__ import annotations + +import logging +import sys + +LEVELS = { + 0: logging.CRITICAL, + 1: logging.ERROR, + 2: logging.WARNING, + 3: logging.INFO, + 4: logging.DEBUG, + 5: logging.NOTSET, +} + +MAX_LEVEL = max(LEVELS.keys()) +LOGGER = logging.getLogger() + + +def setup_report(verbosity, show_pid=False): # noqa: FBT002 + _clean_handlers(LOGGER) + verbosity = min(verbosity, MAX_LEVEL) # pragma: no cover + level = LEVELS[verbosity] + msg_format = "%(message)s" + if level <= logging.DEBUG: + locate = "module" + msg_format = f"%(relativeCreated)d {msg_format} [%(levelname)s %({locate})s:%(lineno)d]" + if show_pid: + msg_format = f"[%(process)d] {msg_format}" + formatter = logging.Formatter(msg_format) + stream_handler = logging.StreamHandler(stream=sys.stdout) + stream_handler.setLevel(level) + LOGGER.setLevel(logging.NOTSET) + stream_handler.setFormatter(formatter) + LOGGER.addHandler(stream_handler) + level_name = logging.getLevelName(level) + LOGGER.debug("setup logging to %s", level_name) + logging.getLogger("distlib").setLevel(logging.ERROR) + return verbosity + + +def _clean_handlers(log): + for log_handler in list(log.handlers): # remove handlers of libraries + log.removeHandler(log_handler) + + +__all__ = [ + "LEVELS", + "MAX_LEVEL", + "setup_report", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/base_embed.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/base_embed.py new file mode 100644 index 0000000000000000000000000000000000000000..864cc49ca3ad418c32e92cfa253b884ffa3c99dd --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/base_embed.py @@ -0,0 +1,118 @@ +from __future__ import annotations + +from abc import ABC +from pathlib import Path + +from virtualenv.seed.seeder import Seeder +from virtualenv.seed.wheels import Version + +PERIODIC_UPDATE_ON_BY_DEFAULT = True + + +class BaseEmbed(Seeder, ABC): + def __init__(self, options) -> None: + super().__init__(options, enabled=options.no_seed is False) + + self.download = options.download + self.extra_search_dir = [i.resolve() for i in options.extra_search_dir if i.exists()] + + self.pip_version = options.pip + self.setuptools_version = options.setuptools + self.wheel_version = options.wheel + + self.no_pip = options.no_pip + self.no_setuptools = options.no_setuptools + self.no_wheel = options.no_wheel + self.app_data = options.app_data + self.periodic_update = not options.no_periodic_update + + if not self.distribution_to_versions(): + self.enabled = False + + @classmethod + def distributions(cls) -> dict[str, Version]: + return { + "pip": Version.bundle, + "setuptools": Version.bundle, + "wheel": Version.bundle, + } + + def distribution_to_versions(self) -> dict[str, str]: + return { + distribution: getattr(self, f"{distribution}_version") + for distribution in self.distributions() + if getattr(self, f"no_{distribution}") is False and getattr(self, f"{distribution}_version") != "none" + } + + @classmethod + def add_parser_arguments(cls, parser, interpreter, app_data): # noqa: ARG003 + group = parser.add_mutually_exclusive_group() + group.add_argument( + "--no-download", + "--never-download", + dest="download", + action="store_false", + help=f"pass to disable download of the latest {'/'.join(cls.distributions())} from PyPI", + default=True, + ) + group.add_argument( + "--download", + dest="download", + action="store_true", + help=f"pass to enable download of the latest {'/'.join(cls.distributions())} from PyPI", + default=False, + ) + parser.add_argument( + "--extra-search-dir", + metavar="d", + type=Path, + nargs="+", + help="a path containing wheels to extend the internal wheel list (can be set 1+ times)", + default=[], + ) + for distribution, default in cls.distributions().items(): + if interpreter.version_info[:2] >= (3, 12) and distribution in {"wheel", "setuptools"}: + default = "none" # noqa: PLW2901 + parser.add_argument( + f"--{distribution}", + dest=distribution, + metavar="version", + help=f"version of {distribution} to install as seed: embed, bundle, none or exact version", + default=default, + ) + for distribution in cls.distributions(): + parser.add_argument( + f"--no-{distribution}", + dest=f"no_{distribution}", + action="store_true", + help=f"do not install {distribution}", + default=False, + ) + parser.add_argument( + "--no-periodic-update", + dest="no_periodic_update", + action="store_true", + help="disable the periodic (once every 14 days) update of the embedded wheels", + default=not PERIODIC_UPDATE_ON_BY_DEFAULT, + ) + + def __repr__(self) -> str: + result = self.__class__.__name__ + result += "(" + if self.extra_search_dir: + result += f"extra_search_dir={', '.join(str(i) for i in self.extra_search_dir)}," + result += f"download={self.download}," + for distribution in self.distributions(): + if getattr(self, f"no_{distribution}"): + continue + version = getattr(self, f"{distribution}_version", None) + if version == "none": + continue + ver = f"={version or 'latest'}" + result += f" {distribution}{ver}," + return result[:-1] + ")" + + +__all__ = [ + "BaseEmbed", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/pip_invoke.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/pip_invoke.py new file mode 100644 index 0000000000000000000000000000000000000000..b733c5148d17d5d4d70820ad19e550607e64f0a4 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/pip_invoke.py @@ -0,0 +1,65 @@ +from __future__ import annotations + +import logging +from contextlib import contextmanager +from subprocess import Popen + +from virtualenv.discovery.cached_py_info import LogCmd +from virtualenv.seed.embed.base_embed import BaseEmbed +from virtualenv.seed.wheels import Version, get_wheel, pip_wheel_env_run + +LOGGER = logging.getLogger(__name__) + + +class PipInvoke(BaseEmbed): + def __init__(self, options) -> None: + super().__init__(options) + + def run(self, creator): + if not self.enabled: + return + for_py_version = creator.interpreter.version_release_str + with self.get_pip_install_cmd(creator.exe, for_py_version) as cmd: + env = pip_wheel_env_run(self.extra_search_dir, self.app_data, self.env) + self._execute(cmd, env) + + @staticmethod + def _execute(cmd, env): + LOGGER.debug("pip seed by running: %s", LogCmd(cmd, env)) + process = Popen(cmd, env=env) + process.communicate() + if process.returncode != 0: + msg = f"failed seed with code {process.returncode}" + raise RuntimeError(msg) + return process + + @contextmanager + def get_pip_install_cmd(self, exe, for_py_version): + cmd = [str(exe), "-m", "pip", "-q", "install", "--only-binary", ":all:", "--disable-pip-version-check"] + if not self.download: + cmd.append("--no-index") + folders = set() + for dist, version in self.distribution_to_versions().items(): + wheel = get_wheel( + distribution=dist, + version=version, + for_py_version=for_py_version, + search_dirs=self.extra_search_dir, + download=False, + app_data=self.app_data, + do_periodic_update=self.periodic_update, + env=self.env, + ) + if wheel is None: + msg = f"could not get wheel for distribution {dist}" + raise RuntimeError(msg) + folders.add(str(wheel.path.parent)) + cmd.append(Version.as_pip_req(dist, wheel.version)) + for folder in sorted(folders): + cmd.extend(["--find-links", str(folder)]) + yield cmd + + +__all__ = [ + "PipInvoke", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/via_app_data/pip_install/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/via_app_data/pip_install/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/via_app_data/pip_install/symlink.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/via_app_data/pip_install/symlink.py new file mode 100644 index 0000000000000000000000000000000000000000..7eb9f5f470ae870de0067272c94bbb55be61da47 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/embed/via_app_data/pip_install/symlink.py @@ -0,0 +1,58 @@ +from __future__ import annotations + +import os +from stat import S_IREAD, S_IRGRP, S_IROTH +from subprocess import PIPE, Popen + +from virtualenv.util.path import safe_delete, set_tree + +from .base import PipInstall + + +class SymlinkPipInstall(PipInstall): + def _sync(self, src, dst): + os.symlink(str(src), str(dst)) + + def _generate_new_files(self): + # create the pyc files, as the build image will be R/O + cmd = [str(self._creator.exe), "-m", "compileall", str(self._image_dir)] + process = Popen(cmd, stdout=PIPE, stderr=PIPE) + process.communicate() + # the root pyc is shared, so we'll not symlink that - but still add the pyc files to the RECORD for close + root_py_cache = self._image_dir / "__pycache__" + new_files = set() + if root_py_cache.exists(): + new_files.update(root_py_cache.iterdir()) + new_files.add(root_py_cache) + safe_delete(root_py_cache) + core_new_files = super()._generate_new_files() + # remove files that are within the image folder deeper than one level (as these will be not linked directly) + for file in core_new_files: + try: + rel = file.relative_to(self._image_dir) + if len(rel.parts) > 1: + continue + except ValueError: + pass + new_files.add(file) + return new_files + + def _fix_records(self, new_files): + new_files.update(i for i in self._image_dir.iterdir()) + extra_record_data_str = self._records_text(sorted(new_files, key=str)) + (self._dist_info / "RECORD").write_text(extra_record_data_str, encoding="utf-8") + + def build_image(self): + super().build_image() + # protect the image by making it read only + set_tree(self._image_dir, S_IREAD | S_IRGRP | S_IROTH) + + def clear(self): + if self._image_dir.exists(): + safe_delete(self._image_dir) + super().clear() + + +__all__ = [ + "SymlinkPipInstall", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/seeder.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/seeder.py new file mode 100644 index 0000000000000000000000000000000000000000..58fd8f416bf82ae13627de48e559778f2f2ca6b7 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/seeder.py @@ -0,0 +1,43 @@ +from __future__ import annotations + +from abc import ABC, abstractmethod + + +class Seeder(ABC): + """A seeder will install some seed packages into a virtual environment.""" + + def __init__(self, options, enabled) -> None: + """ + Create. + + :param options: the parsed options as defined within :meth:`add_parser_arguments` + :param enabled: a flag weather the seeder is enabled or not + """ + self.enabled = enabled + self.env = options.env + + @classmethod + def add_parser_arguments(cls, parser, interpreter, app_data): + """ + Add CLI arguments for this seed mechanisms. + + :param parser: the CLI parser + :param app_data: the CLI parser + :param interpreter: the interpreter this virtual environment is based of + """ + raise NotImplementedError + + @abstractmethod + def run(self, creator): + """ + Perform the seed operation. + + :param creator: the creator (based of :class:`virtualenv.create.creator.Creator`) we used to create this \ + virtual environment + """ + raise NotImplementedError + + +__all__ = [ + "Seeder", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..20a398a306cbf00699bcd7910c4d580cc65ca4d1 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__init__.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +from .acquire import get_wheel, pip_wheel_env_run +from .util import Version, Wheel + +__all__ = [ + "Version", + "Wheel", + "get_wheel", + "pip_wheel_env_run", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7f32798c842221885a64559070a625068e955905 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__pycache__/bundle.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__pycache__/bundle.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..aa41d92d04b31ce882e9b24e73a9f6245a765815 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/__pycache__/bundle.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/acquire.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/acquire.py new file mode 100644 index 0000000000000000000000000000000000000000..5ca610fcd565439c0df83724fae27cbd96461af3 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/acquire.py @@ -0,0 +1,134 @@ +"""Bootstrap.""" + +from __future__ import annotations + +import logging +import sys +from operator import eq, lt +from pathlib import Path +from subprocess import PIPE, CalledProcessError, Popen + +from .bundle import from_bundle +from .periodic_update import add_wheel_to_update_log +from .util import Version, Wheel, discover_wheels + +LOGGER = logging.getLogger(__name__) + + +def get_wheel( # noqa: PLR0913 + distribution, + version, + for_py_version, + search_dirs, + download, + app_data, + do_periodic_update, + env, +): + """Get a wheel with the given distribution-version-for_py_version trio, by using the extra search dir + download.""" + # not all wheels are compatible with all python versions, so we need to py version qualify it + wheel = None + + if not download or version != Version.bundle: + # 1. acquire from bundle + wheel = from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env) + + if download and wheel is None and version != Version.embed: + # 2. download from the internet + wheel = download_wheel( + distribution=distribution, + version_spec=Version.as_version_spec(version), + for_py_version=for_py_version, + search_dirs=search_dirs, + app_data=app_data, + to_folder=app_data.house, + env=env, + ) + if wheel is not None and app_data.can_update: + add_wheel_to_update_log(wheel, for_py_version, app_data) + + return wheel + + +def download_wheel(distribution, version_spec, for_py_version, search_dirs, app_data, to_folder, env): # noqa: PLR0913 + to_download = f"{distribution}{version_spec or ''}" + LOGGER.debug("download wheel %s %s to %s", to_download, for_py_version, to_folder) + cmd = [ + sys.executable, + "-m", + "pip", + "download", + "--progress-bar", + "off", + "--disable-pip-version-check", + "--only-binary=:all:", + "--no-deps", + "--python-version", + for_py_version, + "-d", + str(to_folder), + to_download, + ] + # pip has no interface in python - must be a new sub-process + env = pip_wheel_env_run(search_dirs, app_data, env) + process = Popen(cmd, env=env, stdout=PIPE, stderr=PIPE, universal_newlines=True, encoding="utf-8") + out, err = process.communicate() + if process.returncode != 0: + kwargs = {"output": out, "stderr": err} + raise CalledProcessError(process.returncode, cmd, **kwargs) + result = _find_downloaded_wheel(distribution, version_spec, for_py_version, to_folder, out) + LOGGER.debug("downloaded wheel %s", result.name) + return result + + +def _find_downloaded_wheel(distribution, version_spec, for_py_version, to_folder, out): + for line in out.splitlines(): + stripped_line = line.lstrip() + for marker in ("Saved ", "File was already downloaded "): + if stripped_line.startswith(marker): + return Wheel(Path(stripped_line[len(marker) :]).absolute()) + # if for some reason the output does not match fallback to the latest version with that spec + return find_compatible_in_house(distribution, version_spec, for_py_version, to_folder) + + +def find_compatible_in_house(distribution, version_spec, for_py_version, in_folder): + wheels = discover_wheels(in_folder, distribution, None, for_py_version) + start, end = 0, len(wheels) + if version_spec is not None and version_spec: + if version_spec.startswith("<"): + from_pos, op = 1, lt + elif version_spec.startswith("=="): + from_pos, op = 2, eq + else: + raise ValueError(version_spec) + version = Wheel.as_version_tuple(version_spec[from_pos:]) + start = next((at for at, w in enumerate(wheels) if op(w.version_tuple, version)), len(wheels)) + + return None if start == end else wheels[start] + + +def pip_wheel_env_run(search_dirs, app_data, env): + env = env.copy() + env.update({"PIP_USE_WHEEL": "1", "PIP_USER": "0", "PIP_NO_INPUT": "1"}) + wheel = get_wheel( + distribution="pip", + version=None, + for_py_version=f"{sys.version_info.major}.{sys.version_info.minor}", + search_dirs=search_dirs, + download=False, + app_data=app_data, + do_periodic_update=False, + env=env, + ) + if wheel is None: + msg = "could not find the embedded pip" + raise RuntimeError(msg) + env["PYTHONPATH"] = str(wheel.path) + return env + + +__all__ = [ + "download_wheel", + "get_wheel", + "pip_wheel_env_run", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/bundle.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/bundle.py new file mode 100644 index 0000000000000000000000000000000000000000..523e45ca2a082f5913c4bef681ddcdb2fd0c360f --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/bundle.py @@ -0,0 +1,50 @@ +from __future__ import annotations + +from virtualenv.seed.wheels.embed import get_embed_wheel + +from .periodic_update import periodic_update +from .util import Version, Wheel, discover_wheels + + +def from_bundle(distribution, version, for_py_version, search_dirs, app_data, do_periodic_update, env): # noqa: PLR0913 + """Load the bundled wheel to a cache directory.""" + of_version = Version.of_version(version) + wheel = load_embed_wheel(app_data, distribution, for_py_version, of_version) + + if version != Version.embed: + # 2. check if we have upgraded embed + if app_data.can_update: + per = do_periodic_update + wheel = periodic_update(distribution, of_version, for_py_version, wheel, search_dirs, app_data, per, env) + + # 3. acquire from extra search dir + found_wheel = from_dir(distribution, of_version, for_py_version, search_dirs) + if found_wheel is not None and (wheel is None or found_wheel.version_tuple > wheel.version_tuple): + wheel = found_wheel + return wheel + + +def load_embed_wheel(app_data, distribution, for_py_version, version): + wheel = get_embed_wheel(distribution, for_py_version) + if wheel is not None: + version_match = version == wheel.version + if version is None or version_match: + with app_data.ensure_extracted(wheel.path, lambda: app_data.house) as wheel_path: + wheel = Wheel(wheel_path) + else: # if version does not match ignore + wheel = None + return wheel + + +def from_dir(distribution, version, for_py_version, directories): + """Load a compatible wheel from a given folder.""" + for folder in directories: + for wheel in discover_wheels(folder, distribution, version, for_py_version): + return wheel + return None + + +__all__ = [ + "from_bundle", + "load_embed_wheel", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/periodic_update.py b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/periodic_update.py new file mode 100644 index 0000000000000000000000000000000000000000..ac627b3bdf1683a8a9b0e82f7404678af99b0ae1 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/seed/wheels/periodic_update.py @@ -0,0 +1,428 @@ +"""Periodically update bundled versions.""" + +from __future__ import annotations + +import json +import logging +import os +import ssl +import sys +from datetime import datetime, timedelta, timezone +from itertools import groupby +from pathlib import Path +from shutil import copy2 +from subprocess import DEVNULL, Popen +from textwrap import dedent +from threading import Thread +from urllib.error import URLError +from urllib.request import urlopen + +from virtualenv.app_data import AppDataDiskFolder +from virtualenv.seed.wheels.embed import BUNDLE_SUPPORT +from virtualenv.seed.wheels.util import Wheel +from virtualenv.util.subprocess import CREATE_NO_WINDOW + +LOGGER = logging.getLogger(__name__) +GRACE_PERIOD_CI = timedelta(hours=1) # prevent version switch in the middle of a CI run +GRACE_PERIOD_MINOR = timedelta(days=28) +UPDATE_PERIOD = timedelta(days=14) +UPDATE_ABORTED_DELAY = timedelta(hours=1) + + +def periodic_update( # noqa: PLR0913 + distribution, + of_version, + for_py_version, + wheel, + search_dirs, + app_data, + do_periodic_update, + env, +): + if do_periodic_update: + handle_auto_update(distribution, for_py_version, wheel, search_dirs, app_data, env) + + now = datetime.now(tz=timezone.utc) + + def _update_wheel(ver): + updated_wheel = Wheel(app_data.house / ver.filename) + LOGGER.debug("using %supdated wheel %s", "periodically " if updated_wheel else "", updated_wheel) + return updated_wheel + + u_log = UpdateLog.from_app_data(app_data, distribution, for_py_version) + if of_version is None: + for _, group in groupby(u_log.versions, key=lambda v: v.wheel.version_tuple[0:2]): + # use only latest patch version per minor, earlier assumed to be buggy + all_patches = list(group) + ignore_grace_period_minor = any(version for version in all_patches if version.use(now)) + for version in all_patches: + if wheel is not None and Path(version.filename).name == wheel.name: + return wheel + if version.use(now, ignore_grace_period_minor): + return _update_wheel(version) + else: + for version in u_log.versions: + if version.wheel.version == of_version: + return _update_wheel(version) + + return wheel + + +def handle_auto_update(distribution, for_py_version, wheel, search_dirs, app_data, env): # noqa: PLR0913 + embed_update_log = app_data.embed_update_log(distribution, for_py_version) + u_log = UpdateLog.from_dict(embed_update_log.read()) + if u_log.needs_update: + u_log.periodic = True + u_log.started = datetime.now(tz=timezone.utc) + embed_update_log.write(u_log.to_dict()) + trigger_update(distribution, for_py_version, wheel, search_dirs, app_data, periodic=True, env=env) + + +def add_wheel_to_update_log(wheel, for_py_version, app_data): + embed_update_log = app_data.embed_update_log(wheel.distribution, for_py_version) + LOGGER.debug("adding %s information to %s", wheel.name, embed_update_log.file) + u_log = UpdateLog.from_dict(embed_update_log.read()) + if any(version.filename == wheel.name for version in u_log.versions): + LOGGER.warning("%s already present in %s", wheel.name, embed_update_log.file) + return + # we don't need a release date for sources other than "periodic" + version = NewVersion(wheel.name, datetime.now(tz=timezone.utc), None, "download") + u_log.versions.append(version) # always write at the end for proper updates + embed_update_log.write(u_log.to_dict()) + + +DATETIME_FMT = "%Y-%m-%dT%H:%M:%S.%fZ" + + +def dump_datetime(value): + return None if value is None else value.strftime(DATETIME_FMT) + + +def load_datetime(value): + return None if value is None else datetime.strptime(value, DATETIME_FMT).replace(tzinfo=timezone.utc) + + +class NewVersion: # noqa: PLW1641 + def __init__(self, filename, found_date, release_date, source) -> None: + self.filename = filename + self.found_date = found_date + self.release_date = release_date + self.source = source + + @classmethod + def from_dict(cls, dictionary): + return cls( + filename=dictionary["filename"], + found_date=load_datetime(dictionary["found_date"]), + release_date=load_datetime(dictionary["release_date"]), + source=dictionary["source"], + ) + + def to_dict(self): + return { + "filename": self.filename, + "release_date": dump_datetime(self.release_date), + "found_date": dump_datetime(self.found_date), + "source": self.source, + } + + def use(self, now, ignore_grace_period_minor=False, ignore_grace_period_ci=False): # noqa: FBT002 + if self.source == "manual": + return True + if self.source == "periodic" and (self.found_date < now - GRACE_PERIOD_CI or ignore_grace_period_ci): + if not ignore_grace_period_minor: + compare_from = self.release_date or self.found_date + return now - compare_from >= GRACE_PERIOD_MINOR + return True + return False + + def __repr__(self) -> str: + return ( + f"{self.__class__.__name__}(filename={self.filename}), found_date={self.found_date}, " + f"release_date={self.release_date}, source={self.source})" + ) + + def __eq__(self, other): + return type(self) == type(other) and all( # noqa: E721 + getattr(self, k) == getattr(other, k) for k in ["filename", "release_date", "found_date", "source"] + ) + + def __ne__(self, other): + return not (self == other) + + @property + def wheel(self): + return Wheel(Path(self.filename)) + + +class UpdateLog: + def __init__(self, started, completed, versions, periodic) -> None: + self.started = started + self.completed = completed + self.versions = versions + self.periodic = periodic + + @classmethod + def from_dict(cls, dictionary): + if dictionary is None: + dictionary = {} + return cls( + load_datetime(dictionary.get("started")), + load_datetime(dictionary.get("completed")), + [NewVersion.from_dict(v) for v in dictionary.get("versions", [])], + dictionary.get("periodic"), + ) + + @classmethod + def from_app_data(cls, app_data, distribution, for_py_version): + raw_json = app_data.embed_update_log(distribution, for_py_version).read() + return cls.from_dict(raw_json) + + def to_dict(self): + return { + "started": dump_datetime(self.started), + "completed": dump_datetime(self.completed), + "periodic": self.periodic, + "versions": [r.to_dict() for r in self.versions], + } + + @property + def needs_update(self): + now = datetime.now(tz=timezone.utc) + if self.completed is None: # never completed + return self._check_start(now) + if now - self.completed <= UPDATE_PERIOD: + return False + return self._check_start(now) + + def _check_start(self, now): + return self.started is None or now - self.started > UPDATE_ABORTED_DELAY + + +def trigger_update(distribution, for_py_version, wheel, search_dirs, app_data, env, periodic): # noqa: PLR0913 + wheel_path = None if wheel is None else str(wheel.path) + cmd = [ + sys.executable, + "-c", + dedent( + """ + from virtualenv.report import setup_report, MAX_LEVEL + from virtualenv.seed.wheels.periodic_update import do_update + setup_report(MAX_LEVEL, show_pid=True) + do_update({!r}, {!r}, {!r}, {!r}, {!r}, {!r}) + """, + ) + .strip() + .format(distribution, for_py_version, wheel_path, str(app_data), [str(p) for p in search_dirs], periodic), + ] + debug = env.get("_VIRTUALENV_PERIODIC_UPDATE_INLINE") == "1" + pipe = None if debug else DEVNULL + kwargs = {"stdout": pipe, "stderr": pipe} + if not debug and sys.platform == "win32": + kwargs["creationflags"] = CREATE_NO_WINDOW + process = Popen(cmd, **kwargs) + LOGGER.info( + "triggered periodic upgrade of %s%s (for python %s) via background process having PID %d", + distribution, + "" if wheel is None else f"=={wheel.version}", + for_py_version, + process.pid, + ) + if debug: + process.communicate() # on purpose not called to make it a background process + else: + # set the returncode here -> no ResourceWarning on main process exit if the subprocess still runs + process.returncode = 0 + + +def do_update(distribution, for_py_version, embed_filename, app_data, search_dirs, periodic): # noqa: PLR0913 + versions = None + try: + versions = _run_do_update(app_data, distribution, embed_filename, for_py_version, periodic, search_dirs) + finally: + LOGGER.debug("done %s %s with %s", distribution, for_py_version, versions) + return versions + + +def _run_do_update( # noqa: C901, PLR0913 + app_data, + distribution, + embed_filename, + for_py_version, + periodic, + search_dirs, +): + from virtualenv.seed.wheels import acquire # noqa: PLC0415 + + wheel_filename = None if embed_filename is None else Path(embed_filename) + embed_version = None if wheel_filename is None else Wheel(wheel_filename).version_tuple + app_data = AppDataDiskFolder(app_data) if isinstance(app_data, str) else app_data + search_dirs = [Path(p) if isinstance(p, str) else p for p in search_dirs] + wheelhouse = app_data.house + embed_update_log = app_data.embed_update_log(distribution, for_py_version) + u_log = UpdateLog.from_dict(embed_update_log.read()) + now = datetime.now(tz=timezone.utc) + + update_versions, other_versions = [], [] + for version in u_log.versions: + if version.source in {"periodic", "manual"}: + update_versions.append(version) + else: + other_versions.append(version) + + if periodic: + source = "periodic" + else: + source = "manual" + # mark the most recent one as source "manual" + if update_versions: + update_versions[0].source = source + + if wheel_filename is not None: + dest = wheelhouse / wheel_filename.name + if not dest.exists(): + copy2(str(wheel_filename), str(wheelhouse)) + last, last_version, versions, filenames = None, None, [], set() + while last is None or not last.use(now, ignore_grace_period_ci=True): + download_time = datetime.now(tz=timezone.utc) + dest = acquire.download_wheel( + distribution=distribution, + version_spec=None if last_version is None else f"<{last_version}", + for_py_version=for_py_version, + search_dirs=search_dirs, + app_data=app_data, + to_folder=wheelhouse, + env=os.environ, + ) + if dest is None or (update_versions and update_versions[0].filename == dest.name): + break + release_date = release_date_for_wheel_path(dest.path) + last = NewVersion(filename=dest.path.name, release_date=release_date, found_date=download_time, source=source) + LOGGER.info("detected %s in %s", last, datetime.now(tz=timezone.utc) - download_time) + versions.append(last) + filenames.add(last.filename) + last_wheel = last.wheel + last_version = last_wheel.version + if embed_version is not None and embed_version >= last_wheel.version_tuple: + break # stop download if we reach the embed version + u_log.periodic = periodic + if not u_log.periodic: + u_log.started = now + # update other_versions by removing version we just found + other_versions = [version for version in other_versions if version.filename not in filenames] + u_log.versions = versions + update_versions + other_versions + u_log.completed = datetime.now(tz=timezone.utc) + embed_update_log.write(u_log.to_dict()) + return versions + + +def release_date_for_wheel_path(dest): + wheel = Wheel(dest) + # the most accurate is to ask PyPi - e.g. https://pypi.org/pypi/pip/json, + # see https://warehouse.pypa.io/api-reference/json/ for more details + content = _pypi_get_distribution_info_cached(wheel.distribution) + if content is not None: + try: + upload_time = content["releases"][wheel.version][0]["upload_time"] + return datetime.strptime(upload_time, "%Y-%m-%dT%H:%M:%S").replace(tzinfo=timezone.utc) + except Exception as exception: # noqa: BLE001 + LOGGER.error("could not load release date %s because %r", content, exception) # noqa: TRY400 + return None + + +def _request_context(): + yield None + # fallback to non verified HTTPS (the information we request is not sensitive, so fallback) + yield ssl._create_unverified_context() # noqa: S323, SLF001 + + +_PYPI_CACHE = {} + + +def _pypi_get_distribution_info_cached(distribution): + if distribution not in _PYPI_CACHE: + _PYPI_CACHE[distribution] = _pypi_get_distribution_info(distribution) + return _PYPI_CACHE[distribution] + + +def _pypi_get_distribution_info(distribution): + content, url = None, f"https://pypi.org/pypi/{distribution}/json" + try: + for context in _request_context(): + try: + with urlopen(url, context=context) as file_handler: # noqa: S310 + content = json.load(file_handler) + break + except URLError as exception: + LOGGER.error("failed to access %s because %r", url, exception) # noqa: TRY400 + except Exception as exception: # noqa: BLE001 + LOGGER.error("failed to access %s because %r", url, exception) # noqa: TRY400 + return content + + +def manual_upgrade(app_data, env): + threads = [] + + for for_py_version, distribution_to_package in BUNDLE_SUPPORT.items(): + # load extra search dir for the given for_py + for distribution in distribution_to_package: + thread = Thread(target=_run_manual_upgrade, args=(app_data, distribution, for_py_version, env)) + thread.start() + threads.append(thread) + + for thread in threads: + thread.join() + + +def _run_manual_upgrade(app_data, distribution, for_py_version, env): + start = datetime.now(tz=timezone.utc) + from .bundle import from_bundle # noqa: PLC0415 + + current = from_bundle( + distribution=distribution, + version=None, + for_py_version=for_py_version, + search_dirs=[], + app_data=app_data, + do_periodic_update=False, + env=env, + ) + LOGGER.warning( + "upgrade %s for python %s with current %s", + distribution, + for_py_version, + "" if current is None else current.name, + ) + versions = do_update( + distribution=distribution, + for_py_version=for_py_version, + embed_filename=current.path, + app_data=app_data, + search_dirs=[], + periodic=False, + ) + + args = [ + distribution, + for_py_version, + datetime.now(tz=timezone.utc) - start, + ] + if versions: + args.append("\n".join(f"\t{v}" for v in versions)) + ver_update = "new entries found:\n%s" if versions else "no new versions found" + msg = f"upgraded %s for python %s in %s {ver_update}" + LOGGER.warning(msg, *args) + + +__all__ = [ + "NewVersion", + "UpdateLog", + "add_wheel_to_update_log", + "do_update", + "dump_datetime", + "load_datetime", + "manual_upgrade", + "periodic_update", + "release_date_for_wheel_path", + "trigger_update", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/util/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ab9944abac3f13a709756002d71c2fc6d175805c Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/error.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/error.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..55288a73dd4adb3b3f45ebd912d6b21f019b2873 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/error.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/lock.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/lock.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6b587660e6e171e18dca0edc536a54c5c21f666 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/lock.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/zipapp.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/zipapp.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..938a247350e8aff59fb3ca4d385116e60618b47c Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/__pycache__/zipapp.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/error.py b/vllm/lib/python3.10/site-packages/virtualenv/util/error.py new file mode 100644 index 0000000000000000000000000000000000000000..a317ddc1823179badb916e1add892a162be15a37 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/error.py @@ -0,0 +1,14 @@ +"""Errors.""" + +from __future__ import annotations + + +class ProcessCallFailedError(RuntimeError): + """Failed a process call.""" + + def __init__(self, code, out, err, cmd) -> None: + super().__init__(code, out, err, cmd) + self.code = code + self.out = out + self.err = err + self.cmd = cmd diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/lock.py b/vllm/lib/python3.10/site-packages/virtualenv/util/lock.py new file mode 100644 index 0000000000000000000000000000000000000000..b8c9cf833848b6d75fff1297ebdc76a13a01c8d7 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/lock.py @@ -0,0 +1,168 @@ +"""holds locking functionality that works across processes.""" + +from __future__ import annotations + +import logging +import os +from abc import ABC, abstractmethod +from contextlib import contextmanager, suppress +from pathlib import Path +from threading import Lock, RLock + +from filelock import FileLock, Timeout + +LOGGER = logging.getLogger(__name__) + + +class _CountedFileLock(FileLock): + def __init__(self, lock_file) -> None: + parent = os.path.dirname(lock_file) + if not os.path.isdir(parent): + with suppress(OSError): + os.makedirs(parent) + + super().__init__(lock_file) + self.count = 0 + self.thread_safe = RLock() + + def acquire(self, timeout=None, poll_interval=0.05): + if not self.thread_safe.acquire(timeout=-1 if timeout is None else timeout): + raise Timeout(self.lock_file) + if self.count == 0: + super().acquire(timeout, poll_interval) + self.count += 1 + + def release(self, force=False): # noqa: FBT002 + with self.thread_safe: + if self.count > 0: + self.thread_safe.release() + if self.count == 1: + super().release(force=force) + self.count = max(self.count - 1, 0) + + +_lock_store = {} +_store_lock = Lock() + + +class PathLockBase(ABC): + def __init__(self, folder) -> None: + path = Path(folder) + self.path = path.resolve() if path.exists() else path + + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.path})" + + def __truediv__(self, other): + return type(self)(self.path / other) + + @abstractmethod + def __enter__(self): + raise NotImplementedError + + @abstractmethod + def __exit__(self, exc_type, exc_val, exc_tb): + raise NotImplementedError + + @abstractmethod + @contextmanager + def lock_for_key(self, name, no_block=False): # noqa: FBT002 + raise NotImplementedError + + @abstractmethod + @contextmanager + def non_reentrant_lock_for_key(self, name): + raise NotImplementedError + + +class ReentrantFileLock(PathLockBase): + def __init__(self, folder) -> None: + super().__init__(folder) + self._lock = None + + def _create_lock(self, name=""): + lock_file = str(self.path / f"{name}.lock") + with _store_lock: + if lock_file not in _lock_store: + _lock_store[lock_file] = _CountedFileLock(lock_file) + return _lock_store[lock_file] + + @staticmethod + def _del_lock(lock): + if lock is not None: + with _store_lock, lock.thread_safe: + if lock.count == 0: + _lock_store.pop(lock.lock_file, None) + + def __del__(self) -> None: + self._del_lock(self._lock) + + def __enter__(self): + self._lock = self._create_lock() + self._lock_file(self._lock) + + def __exit__(self, exc_type, exc_val, exc_tb): + self._release(self._lock) + self._del_lock(self._lock) + self._lock = None + + def _lock_file(self, lock, no_block=False): # noqa: FBT002 + # multiple processes might be trying to get a first lock... so we cannot check if this directory exist without + # a lock, but that lock might then become expensive, and it's not clear where that lock should live. + # Instead here we just ignore if we fail to create the directory. + with suppress(OSError): + os.makedirs(str(self.path)) + + try: + lock.acquire(0.0001) + except Timeout: + if no_block: + raise + LOGGER.debug("lock file %s present, will block until released", lock.lock_file) + lock.release() # release the acquire try from above + lock.acquire() + + @staticmethod + def _release(lock): + lock.release() + + @contextmanager + def lock_for_key(self, name, no_block=False): # noqa: FBT002 + lock = self._create_lock(name) + try: + try: + self._lock_file(lock, no_block) + yield + finally: + self._release(lock) + finally: + self._del_lock(lock) + lock = None + + @contextmanager + def non_reentrant_lock_for_key(self, name): + with _CountedFileLock(str(self.path / f"{name}.lock")): + yield + + +class NoOpFileLock(PathLockBase): + def __enter__(self): + raise NotImplementedError + + def __exit__(self, exc_type, exc_val, exc_tb): + raise NotImplementedError + + @contextmanager + def lock_for_key(self, name, no_block=False): # noqa: ARG002, FBT002 + yield + + @contextmanager + def non_reentrant_lock_for_key(self, name): # noqa: ARG002 + yield + + +__all__ = [ + "NoOpFileLock", + "ReentrantFileLock", + "Timeout", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..c144d8dfd7704d4727472c3695c32dddfb0b8959 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__init__.py @@ -0,0 +1,16 @@ +from __future__ import annotations + +from ._permission import make_exe, set_tree +from ._sync import copy, copytree, ensure_dir, safe_delete, symlink +from ._win import get_short_path_name + +__all__ = [ + "copy", + "copytree", + "ensure_dir", + "get_short_path_name", + "make_exe", + "safe_delete", + "set_tree", + "symlink", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..72ad6d00c8584ad2e06da6b3b5a4a4bbf387c504 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_permission.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_permission.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d4018575293a8667828c1aa9392df83b43892e21 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_permission.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_sync.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_sync.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9fcacf93ba94d6d36e91886415f5b79f203b73d6 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_sync.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_win.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_win.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ff70577878c457d9ba7e134171790e5c0bf40482 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/path/__pycache__/_win.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/_permission.py b/vllm/lib/python3.10/site-packages/virtualenv/util/path/_permission.py new file mode 100644 index 0000000000000000000000000000000000000000..8dcad0ce9c07f6608856731047782a3402475a04 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/path/_permission.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +import os +from stat import S_IXGRP, S_IXOTH, S_IXUSR + + +def make_exe(filename): + original_mode = filename.stat().st_mode + levels = [S_IXUSR, S_IXGRP, S_IXOTH] + for at in range(len(levels), 0, -1): + try: + mode = original_mode + for level in levels[:at]: + mode |= level + filename.chmod(mode) + break + except OSError: + continue + + +def set_tree(folder, stat): + for root, _, files in os.walk(str(folder)): + for filename in files: + os.chmod(os.path.join(root, filename), stat) + + +__all__ = ( + "make_exe", + "set_tree", +) diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/_sync.py b/vllm/lib/python3.10/site-packages/virtualenv/util/path/_sync.py new file mode 100644 index 0000000000000000000000000000000000000000..02a6f6e9e58c1a83370f421394bb09de0a41fda9 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/path/_sync.py @@ -0,0 +1,85 @@ +from __future__ import annotations + +import logging +import os +import shutil +import sys +from stat import S_IWUSR + +LOGGER = logging.getLogger(__name__) + + +def ensure_dir(path): + if not path.exists(): + LOGGER.debug("create folder %s", str(path)) + os.makedirs(str(path)) + + +def ensure_safe_to_do(src, dest): + if src == dest: + msg = f"source and destination is the same {src}" + raise ValueError(msg) + if not dest.exists(): + return + if dest.is_dir() and not dest.is_symlink(): + LOGGER.debug("remove directory %s", dest) + safe_delete(dest) + else: + LOGGER.debug("remove file %s", dest) + dest.unlink() + + +def symlink(src, dest): + ensure_safe_to_do(src, dest) + LOGGER.debug("symlink %s", _Debug(src, dest)) + dest.symlink_to(src, target_is_directory=src.is_dir()) + + +def copy(src, dest): + ensure_safe_to_do(src, dest) + is_dir = src.is_dir() + method = copytree if is_dir else shutil.copy + LOGGER.debug("copy %s", _Debug(src, dest)) + method(str(src), str(dest)) + + +def copytree(src, dest): + for root, _, files in os.walk(src): + dest_dir = os.path.join(dest, os.path.relpath(root, src)) + if not os.path.isdir(dest_dir): + os.makedirs(dest_dir) + for name in files: + src_f = os.path.join(root, name) + dest_f = os.path.join(dest_dir, name) + shutil.copy(src_f, dest_f) + + +def safe_delete(dest): + def onerror(func, path, exc_info): # noqa: ARG001 + if not os.access(path, os.W_OK): + os.chmod(path, S_IWUSR) + func(path) + else: + raise # noqa: PLE0704 + + kwargs = {"onexc" if sys.version_info >= (3, 12) else "onerror": onerror} + shutil.rmtree(str(dest), ignore_errors=True, **kwargs) + + +class _Debug: + def __init__(self, src, dest) -> None: + self.src = src + self.dest = dest + + def __str__(self) -> str: + return f"{'directory ' if self.src.is_dir() else ''}{self.src!s} to {self.dest!s}" + + +__all__ = [ + "copy", + "copytree", + "ensure_dir", + "safe_delete", + "symlink", + "symlink", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/path/_win.py b/vllm/lib/python3.10/site-packages/virtualenv/util/path/_win.py new file mode 100644 index 0000000000000000000000000000000000000000..6404cda64cf5ebd6cdf48c6a00643de56e460292 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/path/_win.py @@ -0,0 +1,23 @@ +from __future__ import annotations + + +def get_short_path_name(long_name): + """Gets the short path name of a given long path - http://stackoverflow.com/a/23598461/200291.""" + import ctypes # noqa: PLC0415 + from ctypes import wintypes # noqa: PLC0415 + + GetShortPathNameW = ctypes.windll.kernel32.GetShortPathNameW # noqa: N806 + GetShortPathNameW.argtypes = [wintypes.LPCWSTR, wintypes.LPWSTR, wintypes.DWORD] + GetShortPathNameW.restype = wintypes.DWORD + output_buf_size = 0 + while True: + output_buf = ctypes.create_unicode_buffer(output_buf_size) + needed = GetShortPathNameW(long_name, output_buf, output_buf_size) + if output_buf_size >= needed: + return output_buf.value + output_buf_size = needed + + +__all__ = [ + "get_short_path_name", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/subprocess/__init__.py b/vllm/lib/python3.10/site-packages/virtualenv/util/subprocess/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e6d5fc885336288f2ae3bbe11208e0d47f0b054a --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/subprocess/__init__.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +import subprocess + +CREATE_NO_WINDOW = 0x80000000 + + +def run_cmd(cmd): + try: + process = subprocess.Popen( + cmd, + universal_newlines=True, + stdin=subprocess.PIPE, + stderr=subprocess.PIPE, + stdout=subprocess.PIPE, + encoding="utf-8", + ) + out, err = process.communicate() # input disabled + code = process.returncode + except OSError as error: + code, out, err = error.errno, "", error.strerror + if code == 2 and "file" in err: # noqa: PLR2004 + err = str(error) # FileNotFoundError in Python >= 3.3 + return code, out, err + + +__all__ = ( + "CREATE_NO_WINDOW", + "run_cmd", +) diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/subprocess/__pycache__/__init__.cpython-310.pyc b/vllm/lib/python3.10/site-packages/virtualenv/util/subprocess/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6176c6482441e967c2abb1c0f1ec56d8430a6144 Binary files /dev/null and b/vllm/lib/python3.10/site-packages/virtualenv/util/subprocess/__pycache__/__init__.cpython-310.pyc differ diff --git a/vllm/lib/python3.10/site-packages/virtualenv/util/zipapp.py b/vllm/lib/python3.10/site-packages/virtualenv/util/zipapp.py new file mode 100644 index 0000000000000000000000000000000000000000..764c5c277759f61c87c7445318e12e658ea525dc --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/util/zipapp.py @@ -0,0 +1,43 @@ +from __future__ import annotations # noqa: A005 + +import logging +import os +import zipfile + +from virtualenv.info import IS_WIN, ROOT + +LOGGER = logging.getLogger(__name__) + + +def read(full_path): + sub_file = _get_path_within_zip(full_path) + with zipfile.ZipFile(ROOT, "r") as zip_file, zip_file.open(sub_file) as file_handler: + return file_handler.read().decode("utf-8") + + +def extract(full_path, dest): + LOGGER.debug("extract %s to %s", full_path, dest) + sub_file = _get_path_within_zip(full_path) + with zipfile.ZipFile(ROOT, "r") as zip_file: + info = zip_file.getinfo(sub_file) + info.filename = dest.name + zip_file.extract(info, str(dest.parent)) + + +def _get_path_within_zip(full_path): + full_path = os.path.realpath(os.path.abspath(str(full_path))) + prefix = f"{ROOT}{os.sep}" + if not full_path.startswith(prefix): + msg = f"full_path={full_path} should start with prefix={prefix}." + raise RuntimeError(msg) + sub_file = full_path[len(prefix) :] + if IS_WIN: + # paths are always UNIX separators, even on Windows, though __file__ still follows platform default + sub_file = sub_file.replace(os.sep, "/") + return sub_file + + +__all__ = [ + "extract", + "read", +] diff --git a/vllm/lib/python3.10/site-packages/virtualenv/version.py b/vllm/lib/python3.10/site-packages/virtualenv/version.py new file mode 100644 index 0000000000000000000000000000000000000000..85ca5ad8350b91d535606710b6093e94dd8ddce6 --- /dev/null +++ b/vllm/lib/python3.10/site-packages/virtualenv/version.py @@ -0,0 +1,16 @@ +# file generated by setuptools_scm +# don't change, don't track in version control +TYPE_CHECKING = False +if TYPE_CHECKING: + from typing import Tuple, Union + VERSION_TUPLE = Tuple[Union[int, str], ...] +else: + VERSION_TUPLE = object + +version: str +__version__: str +__version_tuple__: VERSION_TUPLE +version_tuple: VERSION_TUPLE + +__version__ = version = '20.29.1' +__version_tuple__ = version_tuple = (20, 29, 1)