Created VendServer Class
[uccvend-vendserver.git] / setup.py
index 58d63c5..a17fbdc 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
+import os
 
 try:
     from setuptools import setup
@@ -28,10 +29,22 @@ setup(
     author_email='wheel@ucc.asn.au',
     url='http://git.ucc.asn.au/?p=uccvend-vendserver.git;a=summary',
     packages=[
-        'uccvend-vendserver',
+        'VendServer',
     ],
-    package_dir={'uccvend-vendserver':
-                 'Vendserver'},
+    package_dir={'VendServer':
+                 'VendServer'},
+    data_files = [
+        (
+            os.path.join('/etc', 'init.d'),
+            ['bin/init.d/vendserver',
+           ]
+        )
+    ],
+    entry_points={
+        "console_scripts": [
+            "vendserver = VendServer.VendServer:main"
+        ]
+    },
     include_package_data=True,
     install_requires=requirements,
     license="BSD",

UCC git Repository :: git.ucc.asn.au