@@ -171,7 +171,7 @@ def _get_python_bin(repository_ctx):
171
171
if python_bin_path != None :
172
172
return str (python_bin_path )
173
173
_fail ("Cannot find python in PATH, please make sure " +
174
- "python is installed and add its directory in PATH, or --define " +
174
+ "python is installed and add its directory in PATH, or --repo_env " +
175
175
"%s='/something/else'.\n PATH=%s" % (
176
176
_PYTHON_BIN_PATH ,
177
177
repository_ctx .os .environ .get ("PATH" , "" ),
@@ -190,7 +190,7 @@ def _get_bash_bin(repository_ctx):
190
190
return str (bash_bin_path )
191
191
else :
192
192
_fail ("Cannot find bash in PATH, please make sure " +
193
- "bash is installed and add its directory in PATH, or --define " +
193
+ "bash is installed and add its directory in PATH, or --repo_env " +
194
194
"%s='/path/to/bash'.\n PATH=%s" % (
195
195
_BAZEL_SH ,
196
196
repository_ctx .os .environ .get ("PATH" , "" ),
@@ -245,7 +245,7 @@ def _check_python_bin(repository_ctx, python_bin):
245
245
cmd = '[[ -x "%s" ]] && [[ ! -d "%s" ]]' % (python_bin , python_bin )
246
246
result = repository_ctx .execute ([_get_bash_bin (repository_ctx ), "-c" , cmd ])
247
247
if result .return_code == 1 :
248
- _fail ("--define %s='%s' is not executable. Is it the python binary?" % (
248
+ _fail ("--repo_env %s='%s' is not executable. Is it the python binary?" % (
249
249
_PYTHON_BIN_PATH ,
250
250
python_bin ,
251
251
))
0 commit comments