The PyPA recommended tool for installing Python packages.
91
{
"context": "This criteria evaluates the engineer's ability to use pip's custom installation location features, specifically the --target and --user options. The focus is on whether the implementation correctly invokes pip with these flags to install packages to specified directories or the user's local site-packages.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses --target flag",
"description": "The install_to_directory() function correctly uses pip's --target option to install packages to the specified directory",
"max_score": 30
},
{
"name": "Uses --user flag",
"description": "The install_to_user() function correctly uses pip's --user option to install packages to the user's local site-packages directory",
"max_score": 30
},
{
"name": "Subprocess invocation",
"description": "Uses subprocess module or similar to invoke pip as a command-line tool (e.g., subprocess.run(['pip', 'install', ...]) or similar approach)",
"max_score": 20
},
{
"name": "Correct return values",
"description": "Functions return boolean values indicating success/failure based on pip's exit code or installation outcome",
"max_score": 10
},
{
"name": "Proper error handling",
"description": "Handles potential errors from pip execution (e.g., package not found, network issues) and returns False on failure",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-pipevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10