Skip to content
This repository
Newer
Older
100644 85 lines (72 sloc) 3.015 kb
cf0535c0 » buzztroll
2011-05-19 adding in all the new files
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",
f49bb43e » priteau
2011-06-11 Fix Python dependencies for the service LANTorrent
37 install_requires = ["simplejson < 2.2, >= 1.9", "sqlalchemy < 0.7, >= 0.6"],
cf0535c0 » buzztroll
2011-05-19 adding in all the new files
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)
2baafc55 » buzztroll
2011-06-10 creating the lantorrent home directories
69 dst_dir = os.path.abspath(lt_home + "/etc/")
70 try:
71 os.makedirs(dst_dir)
72 except Exception, ex:
73 print "Warning | %s" % (str(ex))
74 dst = os.path.abspath(dst_dir + "/lt.ini")
cf0535c0 » buzztroll
2011-05-19 adding in all the new files
75
76 print ""
77 print "======================="
78 print "Copying the configuration file %s to %s" % (ini_template, dst)
79 cp_cmd = "cp %s %s" % (ini_template, dst)
80 rc = os.system(cp_cmd)
81 if rc != 0:
82 raise Exception('Failed to copy the config file %s' % (cp_cmd))
83
84
9877299a » buzztroll
2011-06-10 packaging some lantorrent deps with cumulus (same virutal env). expan…
85 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.