Merge pull request #7119 from PtrTeixeira/python-virtualenv-install

python: Use literal "python" for virtualenv path
This commit is contained in:
Mike McQuaid 2020-03-04 16:48:36 +00:00 committed by GitHub
commit eb5c882b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,7 +227,7 @@ module Language
Pathname.glob(@venv_root/"lib/python*/orig-prefix.txt").each do |prefix_file|
prefix_path = prefix_file.read
prefix_path.sub! %r{^#{HOMEBREW_CELLAR}/#{python}/[^/]+}, Formula["python"].opt_prefix
prefix_path.sub! %r{^#{HOMEBREW_CELLAR}/python/[^/]+}, Formula["python"].opt_prefix
prefix_file.atomic_write prefix_path
end
end