From 22d3a67b73214727bf2deed06f90799e688c6af0 Mon Sep 17 00:00:00 2001 From: "Tim D. Smith" Date: Sat, 6 May 2017 15:54:56 -0700 Subject: [PATCH] Relocate virtualenv orig-prefix.txt Virtualenvs remember the path to the stdlib in a file named orig_prefix.txt. This file wasn't being relocated because Homebrew skips files that look like they're intended for human consumption by matching against the list of metafile extensions. This led to the bug described in https://github.com/Homebrew/homebrew-core/issues/12869. This fixes relocation by creating an exception for orig-prefix.txt. --- Library/Homebrew/keg_relocate.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/keg_relocate.rb b/Library/Homebrew/keg_relocate.rb index 6044426ee4..8c7d5b0412 100644 --- a/Library/Homebrew/keg_relocate.rb +++ b/Library/Homebrew/keg_relocate.rb @@ -133,6 +133,7 @@ class Keg files = Set.new path.find.reject { |pn| next true if pn.symlink? next true if pn.directory? + next false if pn.basename.to_s == "orig-prefix.txt" # for python virtualenvs next true if Metafiles::EXTENSIONS.include?(pn.extname) if pn.text_executable? text_files << pn