Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/graph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@gmail.com>2014-03-21 03:48:41 +0400
committerSoumith Chintala <soumith@gmail.com>2014-03-21 03:48:41 +0400
commitf4a2e7fed1c1d587f5353b9e04b4b6f1ac668d5e (patch)
treeec080f58a0ddac397ceffb360634cf559177d55e
parentbf26797742956ae15f84b3955b0e8bd0c6fb106e (diff)
adding rockspec and a require
-rw-r--r--graph-scm-1.rockspec28
-rw-r--r--init.lua1
2 files changed, 29 insertions, 0 deletions
diff --git a/graph-scm-1.rockspec b/graph-scm-1.rockspec
new file mode 100644
index 0000000..c16b42a
--- /dev/null
+++ b/graph-scm-1.rockspec
@@ -0,0 +1,28 @@
+package = "graph"
+version = "scm-1"
+
+source = {
+ url = "git://github.com/torch/graph",
+ tag = "master"
+}
+
+description = {
+ summary = "Graph package for Torch",
+ homepage = "https://github.com/torch/graph",
+ license = "UNKNOWN"
+}
+
+dependencies = {
+ "torch >= 7.0"
+}
+
+build = {
+ type = "command",
+ build_command = [[
+cmake -E make_directory build;
+cd build;
+cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="$(LUA_BINDIR)/.." -DCMAKE_INSTALL_PREFIX="$(PREFIX)";
+$(MAKE)
+ ]],
+ install_command = "cd build && $(MAKE) install"
+}
diff --git a/init.lua b/init.lua
index 7e5fe8b..0b1dea0 100644
--- a/init.lua
+++ b/init.lua
@@ -1,3 +1,4 @@
+require 'torch'
graph = {}