mirror of
https://github.com/kennethreitz-archive/python-build.git
synced 2026-06-05 23:30:18 +00:00
added some function to bashrc. fixed issue 2.
This commit is contained in:
+15
-2
@@ -1,3 +1,16 @@
|
||||
from pythonbrew.installer import install_pythonbrew
|
||||
from pythonbrew.installer import install_pythonbrew, upgrade_pythonbrew
|
||||
from optparse import OptionParser
|
||||
if __name__ == "__main__":
|
||||
install_pythonbrew()
|
||||
parser = OptionParser()
|
||||
parser.add_option(
|
||||
'-U', '--upgrade',
|
||||
dest="upgrade",
|
||||
action="store_true",
|
||||
default=False,
|
||||
help="Upgrade."
|
||||
)
|
||||
(opt, arg) = parser.parse_args()
|
||||
if opt.upgrade:
|
||||
upgrade_pythonbrew()
|
||||
else:
|
||||
install_pythonbrew()
|
||||
|
||||
Reference in New Issue
Block a user