From 2484ffa6b5dd612381f061c14b46af3a5dcd97e1 Mon Sep 17 00:00:00 2001 From: Tomasz Fluxid Kowalczyk Date: Sun, 29 Jan 2012 21:47:42 +0100 Subject: [PATCH] Preparing for windows distro --- setup.py2 | 19 +++++++++++++++++++ setup_common.py | 13 +++++++++++++ setup_py2exe.py | 11 +++++++++++ 3 files changed, 43 insertions(+) create mode 100644 setup.py2 create mode 100644 setup_common.py create mode 100644 setup_py2exe.py diff --git a/setup.py2 b/setup.py2 new file mode 100644 index 0000000..50e2548 --- /dev/null +++ b/setup.py2 @@ -0,0 +1,19 @@ +from setuptools import setup, find_packages +import sys + +if sys.version_info < (3,): + print('Sorry, this package is developed for Python 3') + exit(1) + +setup( + name = 'pyhaa', + version = '0.0', + packages = find_packages(exclude=['tests']), + author = 'Tomasz Kowalczyk', + author_email = 'code@fluxid.pl', + description = 'Standalone templating system inspired by HAML', + keywords = 'haml templating', + tests_require = ['nose'], + test_suite = 'nose.collector', +) + diff --git a/setup_common.py b/setup_common.py new file mode 100644 index 0000000..084700c --- /dev/null +++ b/setup_common.py @@ -0,0 +1,13 @@ +#coding:utf8 + +from setuptools import find_packages + +common_info = dict( + name = 'SyncPlay', + version = '0.1', + author = 'Tomasz Kowalczyk, Uriziel', + author_email = 'code@fluxid.pl', + description = 'Solution to synchronize playback of multiple MPlayer and MPC-HC instances over the network.', + packages = find_packages(exclude=['venv']), + install_requires = ['Twisted>=11.1'], +) diff --git a/setup_py2exe.py b/setup_py2exe.py new file mode 100644 index 0000000..3e77b94 --- /dev/null +++ b/setup_py2exe.py @@ -0,0 +1,11 @@ +#coding:utf8 + +from setuptools import setup +from setup_common import common + +info = dict( + common, + scripts = ['sync_mplayer.py', 'sync_mpc.py', 'run_sync_server.py'], +) + +setup(**info)