Allow using Luarocks config in home dir

This commit is contained in:
Peter Melnichenko 2016-12-06 15:50:35 +03:00
parent 8afe784657
commit 24c5bfbffd

View File

@ -1488,7 +1488,7 @@ class LuaRocks(Program):
"install.bat", "install.bat",
"/P", os.path.join(opts.location, "luarocks"), "/P", os.path.join(opts.location, "luarocks"),
"/LUA", opts.location, "/LUA", opts.location,
"/FORCECONFIG", "/F" "/F"
] ]
if lua_identifiers["target"] == "mingw": if lua_identifiers["target"] == "mingw":
args += ["/MW"] args += ["/MW"]
@ -1525,7 +1525,7 @@ class LuaRocks(Program):
else: else:
print("Building LuaRocks" + self.version_suffix) print("Building LuaRocks" + self.version_suffix)
run("./configure", "--prefix=" + opts.location, run("./configure", "--prefix=" + opts.location,
"--with-lua=" + opts.location, "--force-config") "--with-lua=" + opts.location)
if self.is_luarocks_2_0(): if self.is_luarocks_2_0():
run("make") run("make")