[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using LuaRocks to install packages anywhere
- From: Luke Drummond <luke@...>
- Date: Thu, 28 Jan 2016 23:10:24 +0000
Hi all
On 28 January 2016 at 21:02, mva <lua-l@mva.name> wrote:
> 29.01.2016 02:05, leaf corcoran пишет:
>> Hello list,
>>
>> I've been talking to a few people about what needs to be done encourage use
>> of LuaRocks in more places within the Lua community. A common request is "I
>> wish LuaRocks installed packages in the current directory like npm." It
>> bums me out to hear that because it's definitely already possible, but
>> non-explicit documentation hides the feature.
For those of us familiar with python-virtualenv and wanting similar
behaviour in the Lua world, I've written a simple shellscript to
basically emulate this behaviour. As Leaf mentions, Lua/LuaRocks
support this isolation behaviour out of the box, so it's a fairly
simple set of steps to automate this.
https://github.com/ldrumm/virtualenv-lua
It's a bit of a hack (my shellscripting is fairly pitiful) but it may
be of utility to some.
Best
Luke