Skip to content
Newer
Older
100644 81 lines (67 sloc) 2.81 KB
cf0535c @buzztroll adding in all the new files
buzztroll authored May 19, 2011
1 __author__ = 'bresnaha'
2
3 import os
4 from setuptools import setup, find_packages
5 import sys
6
7
8 Version = "0.2"
9
10 if float("%d.%d" % sys.version_info[:2]) < 2.5:
11 sys.stderr.write("Your Python version %d.%d.%d is not supported.\n" % sys.version_info[:3])
12 sys.stderr.write("lantorrent requires Python 2.5 or newer.\n")
13 sys.exit(1)
14
15 setup(name='lantorrent',
16 version=Version,
17 description='An Open Source network protocol for broadcasting large files.',
18 author='Nimbus Development Team',
19 author_email='workspace-user@globus.org',
20 url='http://www.nimbusproject.org/',
21 packages=[ 'pylantorrent', 'pylantorrent.nosetests'],
22 entry_points = {
23 'console_scripts': [
24 'ltdaemon = pylantorrent.daemon:main',
25 'ltserver = pylantorrent.server:main',
26 'ltrequest = pylantorrent.request:main',
27 'ltclient = pylantorrent.client:main',
28 ],
29
30 },
31 download_url ="http://www.nimbusproject.org/downloads/lantorrent-%s.tar.gz" % (Version),
32 keywords = "multicast broadcast network protocol transfer",
33 long_description="""
34 Fast multicast of large files (designed for VM images)
35 """,
36 license="Apache2",
9877299 @buzztroll packaging some lantorrent deps with cumulus (same virutal env). expan…
buzztroll authored Jun 10, 2011
37 install_requires = ["simplejson <= 2.1, >= 1.9", "sqlalchemy == 0.6"],
cf0535c @buzztroll adding in all the new files
buzztroll authored May 20, 2011
38
39 include_package_data = True,
40 # data_files = test_plans,
41 package_data = {},
42
43 classifiers=[
44 'Development Status :: 4 - Beta',
45 'Environment :: Console',
46 'Intended Audience :: End Users/Desktop',
47 'Intended Audience :: Developers',
48 'Intended Audience :: System Administrators',
49 'License :: OSI Approved :: Apache Software License',
50 'Operating System :: MacOS :: MacOS X',
51 'Operating System :: Microsoft :: Windows',
52 'Operating System :: POSIX',
53 'Operating System :: POSIX :: Linux',
54 'Programming Language :: Python',
55 'Topic :: System :: Clustering',
56 'Topic :: System :: Distributed Computing',
57 ],
58 )
59
60 lt_home = os.path.expanduser("~/.lantorrent")
61 if 'LANTORRENT_HOME' in os.environ:
62 lt_home = os.environ['LANTORRENT_HOME']
63
64 ini_template = "etc/lt.ini"
65 dir = os.path.dirname(__file__)
66 if dir:
67 ini_template = dir + "/" + ini_template
68 ini_template = os.path.abspath(ini_template)
69 dst = os.path.abspath(lt_home + "/etc/lt.ini")
70
71 print ""
72 print "======================="
73 print "Copying the configuration file %s to %s" % (ini_template, dst)
74 cp_cmd = "cp %s %s" % (ini_template, dst)
75 rc = os.system(cp_cmd)
76 if rc != 0:
77 raise Exception('Failed to copy the config file %s' % (cp_cmd))
78
79
9877299 @buzztroll packaging some lantorrent deps with cumulus (same virutal env). expan…
buzztroll authored Jun 10, 2011
80 print "Lantorrent is now installed into your python environment. We recommend using the LANTORRENT_HOME environment variable to specify the location of configuration and log files. If this env is not set then ~/.lantorrent is used."
Something went wrong with that request. Please try again.