mirror of
https://github.com/gosticks/brew.git
synced 2026-08-13 05:00:20 +00:00
Use more descriptive heredoc names.
This commit is contained in:
@@ -46,20 +46,20 @@ module Language
|
||||
end
|
||||
|
||||
def self.in_sys_path?(python, path)
|
||||
script = <<~EOS
|
||||
script = <<~PYTHON
|
||||
import os, sys
|
||||
[os.path.realpath(p) for p in sys.path].index(os.path.realpath("#{path}"))
|
||||
EOS
|
||||
PYTHON
|
||||
quiet_system python, "-c", script
|
||||
end
|
||||
|
||||
def self.setup_install_args(prefix)
|
||||
shim = <<~EOS
|
||||
shim = <<~PYTHON
|
||||
import setuptools, tokenize
|
||||
__file__ = 'setup.py'
|
||||
exec(compile(getattr(tokenize, 'open', open)(__file__).read()
|
||||
.replace('\\r\\n', '\\n'), __file__, 'exec'))
|
||||
EOS
|
||||
PYTHON
|
||||
%W[
|
||||
-c
|
||||
#{shim}
|
||||
|
||||
Reference in New Issue
Block a user