Merge pull request #3572 from DomT4/python
python: handle env filtering on pth check
This commit is contained in:
commit
7352c90796
@ -35,7 +35,7 @@ module Language
|
|||||||
probe_file = homebrew_site_packages(version)/"homebrew-pth-probe.pth"
|
probe_file = homebrew_site_packages(version)/"homebrew-pth-probe.pth"
|
||||||
begin
|
begin
|
||||||
probe_file.atomic_write("import site; site.homebrew_was_here = True")
|
probe_file.atomic_write("import site; site.homebrew_was_here = True")
|
||||||
quiet_system python, "-c", "import site; assert(site.homebrew_was_here)"
|
with_homebrew_path { quiet_system python, "-c", "import site; assert(site.homebrew_was_here)" }
|
||||||
ensure
|
ensure
|
||||||
probe_file.unlink if probe_file.exist?
|
probe_file.unlink if probe_file.exist?
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user