瀏覽代碼

Fix issue #684: Minor docstring edit (#699)

Matthew Hernandez 5 月之前
父節點
當前提交
5c66f74fbe
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      setup/02_installing-python-libraries/python_environment_check.py

+ 4 - 3
setup/02_installing-python-libraries/python_environment_check.py

@@ -65,9 +65,10 @@ def get_packages(pkgs):
 
 def get_requirements_dict():
     """
-    Parses requirements.txt and returns a dictionary mapping package names (lowercase)
-    to a specifier string (e.g. ">=2.18.0,<3.0"). It uses packaging.requirements.Requirement
-    to properly handle environment markers.
+    Parses requirements.txt and returns a dictionary mapping package names (in lowercase)
+    to specifier strings (e.g. ">=2.18.0,<3.0"). It uses the Requirement class from 
+    packaging.requirements to properly handle environment markers, and converts each object's
+    specifier to a string.
     """
 
     PROJECT_ROOT = dirname(realpath(__file__))