summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-06-14 23:16:07 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-06-14 23:16:07 +0100
commit7af8f5b25f140deff430bf42a6a7950952b26fc1 (patch)
treebc93e5375f1d14d442673d9bb68b0bba4eb4434f
parent0fb08748e5285e5d4adc6135eec8889887a63299 (diff)
added the setup file for the server
the procedure is described in the README. Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--README12
l---------cao-server1
-rw-r--r--setup.py26
3 files changed, 34 insertions, 5 deletions
diff --git a/README b/README
index 6426716..51384e3 100644
--- a/README
+++ b/README
@@ -4,13 +4,15 @@ Requirements
- python-websocket-server (available here
https://github.com/Pithikos/python-websocket-server or via pip)
+Installation of the Server
+==========================
+
+ $ python setup.py build
+ $ [sudo] python setup.py install
+
Execution
=========
Start the python server (it will listen to any connection on port 1236)
- $ ./server.py &
-
-Then configure your webserver to deal with the web pages or use
-
- $ php -S <listen_addr>:<port> &
+ $ cao-server &
diff --git a/cao-server b/cao-server
new file mode 120000
index 0000000..48c45cb
--- /dev/null
+++ b/cao-server
@@ -0,0 +1 @@
+server.py \ No newline at end of file
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..1ab47e3
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,26 @@
+from distutils.core import setup
+
+packages = [
+ 'CAO',
+ ]
+
+data_files = [
+ ('lang', [
+ 'lang/en/cards/black',
+ 'lang/en/cards/white',
+ 'lang/fr/cards/black',
+ 'lang/fr/cards/white',
+ ]),
+ ]
+
+scripts = [
+ 'cao-server',
+ ]
+
+setup(
+ name='cao',
+ version='0.1',
+ packages=packages,
+ data_files=data_files,
+ scripts=scripts,
+ )