forked from olsonse/python-vxi11
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·61 lines (51 loc) · 1.87 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·61 lines (51 loc) · 1.87 KB
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
#!/usr/bin/env python
from distutils.core import setup
import sys
import os
from os.path import join
DESCRIPTION = """
VXI-11 for python
Most was written by Spencer E. Olson <olsonse@umich.edu>
The vxi11.x file is a modified version of the one from the vxi11 for linux
package (and the author of that package borrowed it from somewhere else).
To generate the rpc protocol for VXI-11, the vxi11.x file was parsed and
interpreted by the rpcgen.py script from
from the newpynfs package (version 20060822). The generated VXI-11
implementation subsequently depended on the rpc package that is also shipped
with the newpynfs package. The newpynfs package is written by:
Martin Murray <mmurray@deepthought.org>
and Fred Isaman <iisaman@citi.umich.edu>
Copyright (C) 2001 University of Michigan, Center for
Information Technology Integration
I am including the rpc package from newpynfs here (but not rpcgen.py).
"""
# Order is important:
DIRS = [join('src','rpc'), join('src','portmap'), join('src','vxi11')]
def setup(*args, **kwargs):
print "This just runs the setup.py file in each of the following dirs:"
print DIRS
print "If you want more control, say no and do it by hand"
str = raw_input("Continue? (y/n) ")
if (not str) or str[0] not in ['y', 'Y']:
return
cwd = os.getcwd()
command = " ".join(sys.argv)
for dir in DIRS:
print "\n\nMoving to %s" % dir
os.chdir(join(cwd, dir))
os.system("python %s" % command)
os.chdir(cwd)
setup(
name = "pynfs",
version = "0.0.0", # import this?
packages = ['rpc', 'vxi11'],
description = 'VXI-11 for python',
long_description = DESCRIPTION,
# These will be the same
author = "Spencer Olson",
author_email = "olsonse@umich.edu",
maintainer = "Spencer Olson",
maintainer_email = "olsonse@umich.edu",
url = "http://github.com/olsonse/vxi11/",
license = "GPL",
)