Skip to content

Commit

Permalink
added some extra regex entries for python virtualenv matching
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Delaere committed Nov 12, 2020
1 parent 43452e1 commit 384c248
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1007,18 +1007,26 @@ fn is_python_binary(file_name: OsString) -> bool {
"^activate.fish$",
"^activate_this.py$",
"^easy_install$",
"^easy_install[0-9]$",
"^easy_install[0-9].[0-9]$",
"^easy_install-[0-9].[0-9]$",
"^pip$",
"^pip[0-9]$",
"^pip[0-9].[0-9]$",
"^pip-[0-9].[0-9]$",
"^f2py$",
"^f2py[0-9]$",
"^f2py[0-9].[0-9]$",
"^f2py-[0-9].[0-9]$",
"^python$",
"^python[0-9]$",
"^python[0-9].[0-9]$",
"^python-[0-9].[0-9]$",
"^python-config$",
"^wheel$",
"^wheel[0-9]$",
"^wheel[0-9].[0-9]$",
"^wheel-[0-9].[0-9]$",
];

for file in files {
Expand Down

0 comments on commit 384c248

Please sign in to comment.