diff options
-rw-r--r-- | README | 12 | ||||
l--------- | cao-server | 1 | ||||
-rw-r--r-- | setup.py | 26 |
3 files changed, 34 insertions, 5 deletions
@@ -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, + ) |