-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathsetup.py
executable file
·45 lines (34 loc) · 1.04 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
#!/usr/bin/env python3
from __future__ import print_function
from setuptools import setup
import sys
import os
from os.path import join
DESCRIPTION = """
pynfs
============
Add stuff here.
"""
DIRS = ["xdr", "rpc", "nfs4.1", "nfs4.0"] # Order is important
def setup(*args, **kwargs):
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 %s" % (sys.version[0], command))
os.chdir(cwd)
setup(name = "pynfs",
version = "0.0.0", # import this?
packages = ["nfs4", "rpc", "xdr"],
description = "NFS tools, tests, and support libraries",
long_description = DESCRIPTION,
#install_requires = ["gssapi", "ply"],
# These will be the same
author = "Fred Isaman",
author_email = "iisaman@citi.umich.edu",
maintainer = "Calum Mackay",
maintainer_email = "calum.mackay@oracle.com",
url = "https://linux-nfs.org/wiki/index.php/Pynfs",
license = "GPL"
)