Specify self for internal setup method (#14008)
This commit is contained in:
parent
5e20bd86e4
commit
67e45096c8
1 changed files with 4 additions and 4 deletions
|
@ -118,8 +118,8 @@ def _setup_dependent_env_helper(self, env, dependent_spec):
|
||||||
return lua_patterns, lua_cpatterns
|
return lua_patterns, lua_cpatterns
|
||||||
|
|
||||||
def setup_dependent_build_environment(self, env, dependent_spec):
|
def setup_dependent_build_environment(self, env, dependent_spec):
|
||||||
lua_patterns, lua_cpatterns = _setup_dependent_env_helper(
|
lua_patterns, lua_cpatterns = self._setup_dependent_env_helper(
|
||||||
self, env, dependent_spec)
|
env, dependent_spec)
|
||||||
|
|
||||||
env.set('LUA_PATH', ';'.join(lua_patterns), separator=';')
|
env.set('LUA_PATH', ';'.join(lua_patterns), separator=';')
|
||||||
env.set('LUA_CPATH', ';'.join(lua_cpatterns), separator=';')
|
env.set('LUA_CPATH', ';'.join(lua_cpatterns), separator=';')
|
||||||
|
@ -127,8 +127,8 @@ def setup_dependent_build_environment(self, env, dependent_spec):
|
||||||
def setup_dependent_run_environment(self, env, dependent_spec):
|
def setup_dependent_run_environment(self, env, dependent_spec):
|
||||||
# For run time environment set only the path for dependent_spec and
|
# For run time environment set only the path for dependent_spec and
|
||||||
# prepend it to LUAPATH
|
# prepend it to LUAPATH
|
||||||
lua_patterns, lua_cpatterns = _setup_dependent_env_helper(
|
lua_patterns, lua_cpatterns = self._setup_dependent_env_helper(
|
||||||
self, env, dependent_spec)
|
env, dependent_spec)
|
||||||
|
|
||||||
if dependent_spec.package.extends(self.spec):
|
if dependent_spec.package.extends(self.spec):
|
||||||
env.prepend_path('LUA_PATH', ';'.join(lua_patterns), separator=';')
|
env.prepend_path('LUA_PATH', ';'.join(lua_patterns), separator=';')
|
||||||
|
|
Loading…
Reference in a new issue