mirror of
https://github.com/rasbt/LLMs-from-scratch.git
synced 2025-08-28 10:30:36 +00:00
parent
d37ddb668a
commit
5c66f74fbe
@ -65,9 +65,10 @@ def get_packages(pkgs):
|
|||||||
|
|
||||||
def get_requirements_dict():
|
def get_requirements_dict():
|
||||||
"""
|
"""
|
||||||
Parses requirements.txt and returns a dictionary mapping package names (lowercase)
|
Parses requirements.txt and returns a dictionary mapping package names (in lowercase)
|
||||||
to a specifier string (e.g. ">=2.18.0,<3.0"). It uses packaging.requirements.Requirement
|
to specifier strings (e.g. ">=2.18.0,<3.0"). It uses the Requirement class from
|
||||||
to properly handle environment markers.
|
packaging.requirements to properly handle environment markers, and converts each object's
|
||||||
|
specifier to a string.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
PROJECT_ROOT = dirname(realpath(__file__))
|
PROJECT_ROOT = dirname(realpath(__file__))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user