Skip to content

Commit f5e9aee

Browse files
authored
#130 - Handle --- in fields in package metadata (#131)
Sometimes package metadata itself can contain ---, such as the license for Numpy. Gracefully handle that when processing package metadata. Fixes #130
1 parent eed38b8 commit f5e9aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pyright-scip/src/virtualenv/environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function pipBulkShow(names: string[]): string[] {
3737
return child_process
3838
.execSync(`${getPipCommand()} show -f ${names.join(' ')}`)
3939
.toString()
40-
.split('---');
40+
.split('\n---');
4141
}
4242

4343
export default function getEnvironment(

0 commit comments

Comments
 (0)