From 7af8f5b25f140deff430bf42a6a7950952b26fc1 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sun, 14 Jun 2015 23:16:07 +0100 Subject: added the setup file for the server the procedure is described in the README. Signed-off-by: Olivier Gayot --- README | 12 +++++++----- cao-server | 1 + setup.py | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 5 deletions(-) create mode 120000 cao-server create mode 100644 setup.py 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 : & + $ 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, + ) -- cgit v1.2.3