forked from utahta/pythonbrew
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpythonbrew_install.py
More file actions
Latest commit
25 lines (25 loc) · 689 Bytes
/
Copy pathpythonbrew_install.py
File metadata and controls
25 lines (25 loc) · 689 Bytes
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
frompythonbrew.installerimportinstall_pythonbrew, upgrade_pythonbrew, systemwide_pythonbrew
fromoptparseimportOptionParser
if__name__=="__main__":
parser=OptionParser()
parser.add_option(
'-U', '--upgrade',
dest="upgrade",
action="store_true",
default=False,
help="Upgrade."
)
parser.add_option(
'--systemwide',
dest="systemwide",
action="store_true",
default=False,
help="systemwide install."
)
(opt, arg) =parser.parse_args()
ifopt.systemwide:
systemwide_pythonbrew()
elifopt.upgrade:
upgrade_pythonbrew()
else:
install_pythonbrew()