Hey folks,
I've been playing around with localizing environments in lua and came
up with this little tool `vert` which is based loosely on pythons
`virtualenv`
It simply installs lua and luarocks to a local prefix and gives you a
shell script to rewrite your paths to point to that.
example usage:
$> vert my_project
... <lots of output as it builds stuff>
$> cd my_project
$> source ./bin/activate
$> which lua
/home/aconbere/Projects/my_project/bin/lua
$(my_project)> lua
Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio
>
At which point all usage of luarocks and lua will point to the
environment found in my_project.
Right now my only test environment is linux (Ubuntu 11.04) so I doubt
many other platforms are well supported. You can specify the lua
version and luarocks version you want easily with the command options.
--lua-version and --luarocks-version (I am not protecting against
incompatibilities in those requests)
Anyway, I've found it pretty useful already. You can find the projects source at
https://github.com/aconbere/vert
and the rockspec at
https://github.com/aconbere/vert/blob/v0.0.1/rockspecs/vert-0.0.1-1.rockspec
This is my first rockspect, so I expect there to be some issues :)
~ Anders
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Luarocks-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luarocks-developers