Last active
December 19, 2015 17:49
-
-
Save enotodden/5994524 to your computer and use it in GitHub Desktop.
turbo-virtual-env usage example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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