Use more descriptive heredoc names.

This commit is contained in:
Markus Reiter
2018-07-11 18:15:30 +02:00
parent 2e9d843bb7
commit 7762ce32aa
43 changed files with 200 additions and 200 deletions
+4 -4
View File
@@ -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}