From 2a45fc79800b21414993f5835d92d9557318b5f9 Mon Sep 17 00:00:00 2001 From: mpeterv Date: Wed, 2 Mar 2016 19:02:36 +0300 Subject: [PATCH] Don't attempt to install libluajit.so on Windows --- hererocks.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hererocks.py b/hererocks.py index ae6da51..8cb747a 100755 --- a/hererocks.py +++ b/hererocks.py @@ -660,7 +660,7 @@ class LuaJIT(Lua): dll_file = None if os.name == "nt": - self.arch_file = "lua51.lib" + arch_file = "lua51.lib" target_arch_file = "lua51.lib" dll_file = "lua51.dll" @@ -673,7 +673,9 @@ class LuaJIT(Lua): copy_files(os.path.join(opts.location, "lib")) shutil.copy(arch_file, os.path.join(opts.location, "lib", target_arch_file)) - shutil.copy(so_file, os.path.join(opts.location, "lib", target_so_file)) + + if os.name != "nt": + shutil.copy(so_file, os.path.join(opts.location, "lib", target_so_file)) jitlib_path = os.path.join( opts.location, "share", "lua", self.major_version, "jit")