Martin Thorsen Ranang avatar Martin Thorsen Ranang committed 2caecc7 Draft

Made orbited installable with 'pip -e …'.

Comments (0)

Files changed (1)

+from setuptools import setup, find_packages
+import os
+
+import sys
+VERSION='0.7.11beta3'
+
+static_types = [
+    '*.js', 
+    '*.html',
+    '*.css', 
+    '*.ico', 
+    '*.gif', 
+    '*.jpg', 
+    '*.png', 
+    '*.txt*',
+    '*.py',
+    '*.template'
+]
+
+try:
+    setup(
+        name = 'orbited',
+        version = VERSION,
+        author = 'Michael Carter',
+        author_email = 'CarterMichael@gmail.com',
+        maintainer = 'Matthew Desmarais',
+        maintainer_email = 'matthew.desmarais@gmail.com',
+        url = 'http://www.orbited.org',
+        license = 'MIT License',
+        description = 'A browser(javascript)->tcp bridge; Comet is used to emulate TCP connections in the browser; Allows you to connect a web browser directly to an IRC or XMPP server, for instance.',
+        long_description = '',
+        package_dir = {'': 'daemon'},
+        packages = find_packages('daemon'),
+        package_data = {
+            '': reduce(list.__add__,
+                       [ '.svn' not in d
+                         and [os.path.join(d[len(os.path.join('daemon', 'orbited')) + 1:], e) for e in static_types]
+                         or []
+                         for (d, s, f) in os.walk(os.path.join('daemon', 'orbited', 'static'))
+                         ])
+            },
+        include_package_data=True,
+        zip_safe = False,
+        install_requires = ['morbid >= 0.8.7.3',
+                            'twisted'],
+        entry_points = '''
+            [console_scripts]
+            orbited = orbited.start:main
+        ''',
+        classifiers = [
+            'Development Status :: 4 - Beta',
+            'Environment :: Console',
+            'Intended Audience :: Developers',
+            'License :: OSI Approved :: MIT License',
+            'Operating System :: OS Independent',
+            'Programming Language :: Python',
+            'Topic :: Software Development :: Libraries :: Python Modules'
+        ]
+    )
+except NameError:
+    print "\nerror! Orbited NOT installed!"
+    print "There is a known conflict between subversion 1.5 and some old versions of setuptools."
+    print 'To install Orbited, first update setuptools with the command "easy_install -U setuptools". This is recommended.'
+    print "If you don't want the new version of setuptools, you can svn export the checked-out Orbited directory, and run setup.py from there."
+    print "(svn export info: http://svnbook.red-bean.com/en/1.0/re10.html)"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.