port plumed and mscg Install.py files to use argparse

This commit is contained in:
Axel Kohlmeyer
2018-12-05 18:31:57 -05:00
parent 3aacea671e
commit 8d4bfa1aa7
3 changed files with 99 additions and 127 deletions

View File

@ -23,6 +23,7 @@ help = """
Syntax from src dir: make lib-voronoi args="-b"
or: make lib-voronoi args="-p /usr/local/voro++-0.4.6"
or: make lib-voronoi args="-b -v voro++-0.4.6"
Syntax from lib dir: python Install.py -b -v voro++-0.4.6
or: python Install.py -b
or: python Install.py -p /usr/local/voro++-0.4.6
@ -41,7 +42,7 @@ pgroup.add_argument("-b", "--build", action="store_true",
pgroup.add_argument("-p", "--path",
help="specify folder of existing Voro++ installation")
parser.add_argument("-v", "--version", default=version,
help="set Voro++ version of Voro++ to download and build (default: %s)" % version)
help="set version of Voro++ to download and build (default: %s)" % version)
args = parser.parse_args()
@ -53,7 +54,6 @@ if args.build == False and not args.path:
buildflag = args.build
pathflag = args.path != None
voropath = args.path
linkflag = True
homepath = fullpath(".")
homedir = "%s/%s" % (homepath,version)