From 0c3e89d1a3a840294abfc14664ae2cfa2b86aa55 Mon Sep 17 00:00:00 2001
From: Martijn Vermaat <martijn@vermaat.name>
Date: Tue, 5 Apr 2011 13:17:42 +0000
Subject: [PATCH] Further changes to setup.py.

git-svn-id: https://humgenprojects.lumc.nl/svn/mutalyzer/branches/refactor-mutalyzer-branch@248 eb6bd6ab-9ccd-42b9-aceb-e2899b4a52f1
---
 bin/{batch_daemon => mutalyzer-batchd} |  1 +
 setup.py                               | 14 +++++++++++---
 2 files changed, 12 insertions(+), 3 deletions(-)
 rename bin/{batch_daemon => mutalyzer-batchd} (98%)

diff --git a/bin/batch_daemon b/bin/mutalyzer-batchd
similarity index 98%
rename from bin/batch_daemon
rename to bin/mutalyzer-batchd
index 0d7a9c1b..3df71c5b 100755
--- a/bin/batch_daemon
+++ b/bin/mutalyzer-batchd
@@ -7,6 +7,7 @@ We use python-daemon [1] for daemonizing the job processing. This file
 should be run with the mutalyzer directory as working directory.
 
 @todo: Check if PID dir is writable.
+@todo: Get rid of ugly exception logging.
 
 [1] http://pypi.python.org/pypi/python-daemon/
 """
diff --git a/setup.py b/setup.py
index d7b19a80..ccefce08 100644
--- a/setup.py
+++ b/setup.py
@@ -13,10 +13,18 @@ setup(
     author=distmeta.__author__,
     author_email=distmeta.__contact__,
     url=distmeta.__homepage__,
+    license='Not distributable',
+    platform=['any'],
     packages=find_packages(exclude=['doc', 'extras', 'tests']),
     include_package_data=True,
-    scripts=['bin/batch_daemon'],
+    scripts=['bin/mutalyzer-batchd'],
     zip_safe=False
-    #data_files=[('/etc/init.d', ['examples/init.d/mutalyzer-batchd'])]
-    # Todo: templates, doc, bin
 )
+
+# Things not handled by this setup.py:
+# - Copy extras/config.example to /etc/mutalyzer/config
+# - Database setup
+# - Chown /var/log/mutalyzer.log
+# - Copy extras/init.d/mutalyzer-batchd to /etc/init.d/mutalyzer-batchd
+# - Copy doc to /usr/share/doc
+# Perhaps as a postinstall script?
-- 
GitLab