forked from irmen/Pyro4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
89 lines (80 loc) · 3.91 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
from __future__ import print_function
import sys
import re
try:
# try setuptools first, to get access to build_sphinx and test commands
from setuptools import setup
using_setuptools = True
except ImportError:
from distutils.core import setup
using_setuptools = False
if __name__ == '__main__':
with open("src/Pyro4/constants.py") as constants_file:
# extract the VERSION definition from the Pyro4.constants module without importing it
version_line = next(line for line in constants_file if line.startswith("VERSION"))
pyro4_version = re.match("VERSION ?= ?['\"](.+)['\"]", version_line).group(1)
print('Pyro version = %s' % pyro4_version)
setupargs = {
"name": "Pyro4",
"version": pyro4_version,
"license": "MIT",
"description": "distributed object middleware for Python (RPC)",
"long_description": """Pyro means PYthon Remote Objects.
It is a library that enables you to build applications in which
objects can talk to eachother over the network, with minimal programming effort.
You can just use normal Python method calls, with almost every possible parameter
and return value type, and Pyro takes care of locating the right object on the right
computer to execute the method. It is designed to be very easy to use, and to
generally stay out of your way. But it also provides a set of powerful features that
enables you to build distributed applications rapidly and effortlessly.
Pyro is a pure Python library and runs on many different platforms and Python versions.
The source code repository is on Github: https://github.com/irmen/Pyro4
The documentation can be found here: http://pyro4.readthedocs.io
""",
"author": "Irmen de Jong",
"author_email": "irmen@razorvine.net",
"keywords": ["distributed objects", "RPC", "remote method call", "IPC"],
"url": "http://pyro4.readthedocs.io",
"package_dir": {'': 'src'},
"packages": ['Pyro4', 'Pyro4.socketserver', 'Pyro4.test', 'Pyro4.utils'],
"scripts": [],
"platforms": "any",
"install_requires": ["serpent>=1.23"],
"extras_require": {
":python_version<'3.4'": ["selectors34"]
},
"requires": ["serpent"],
"classifiers": [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: Dutch",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Software Development :: Object Brokering",
"Topic :: System :: Distributed Computing",
"Topic :: System :: Networking"
],
"entry_points": {
'console_scripts': [
'pyro4-ns = Pyro4.naming:main',
'pyro4-nsc = Pyro4.nsc:main',
'pyro4-test-echoserver = Pyro4.test.echoserver:main',
'pyro4-check-config = Pyro4.configuration:main',
'pyro4-flameserver = Pyro4.utils.flameserver:main',
'pyro4-httpgateway = Pyro4.utils.httpgateway:main'
]
},
"options": {"install": {"optimize": 0}}
}
setup(**setupargs)
if len(sys.argv) >= 2 and sys.argv[1].startswith("install"):
print("\nOnly the Pyro library has been installed (version %s)." % pyro4_version)
print("If you want to install the tests, the examples, and/or the manual,")
print("you have to copy them manually to the desired location.")