Skip to content

Instantly share code, notes, and snippets.

@enotodden
Last active December 19, 2015 17:49
Show Gist options
  • Save enotodden/5994524 to your computer and use it in GitHub Desktop.
Save enotodden/5994524 to your computer and use it in GitHub Desktop.
turbo-virtual-env usage example
# Create a new environment with turbo-virtual-env, with the 'penlight' package from luarocks.
$ cd /tmp
$ mkdir myproject
$ cd myproject
$ #Tell turbo-virtual-env to pass 'penlight' to luarocks for installation
$ echo "penlight" >> ./requirements.txt
$ turbo-virtual-env --create ./env -r ./requirements.txt
$ # Activate virtual environment
$ source env/bin/activate # Activate our virtual environment
$ lua #lua is symlinked to luajit binary
LuaJIT 2.0.2 -- Copyright (C) 2005-2013 Mike Pall. http://luajit.org/
JIT: ON CMOV SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc sink fuse
> require("pl")
> if path.isdir("/") then print("Suprise! '/' is a directory!") end
Suprise! '/' is a directory!
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment