Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6a391f7

Browse files
committed
little updates
1 parent 66e48db commit 6a391f7

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

‎core.py‎

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,26 @@
2525
except ImportError:
2626
print "> Pip is not present."
2727
print separator
28-
installPIP = raw_input("> PyUp: Do you want to install it using your browser? (Y/N): ")
28+
installPIP = raw_input("> PyUp: Do you want to install it ? (Y/N): ")
2929
print separator
3030
if installPIP.lower() == "y":
31-
print "> PyUp: Opening in the browser....\n"
31+
print "> PyUp: installing pip....\n"
32+
os.system("python get-pip.py")
33+
34+
print "> PyUp: checking for pip-review .....\n"
35+
try:
36+
# Checking for pip-review, if not installed then pyUp will install it
37+
import pip_review
38+
print "> PyUp: pip-review is present.\n"
39+
except:
40+
print "> PyUp: installing pip-review .....\n"
41+
os.system("pip install pip-review")
42+
os.system("pip-review --auto")
43+
print separator
44+
print "> PyUp: All your python packages updated successfully.\n"
45+
print separator
46+
47+
else:
3248
try:
3349
# Checking for webbrowser, if not installed then pyUp will install it
3450
import webbrowser
@@ -38,7 +54,6 @@
3854
os.system("pip install webbrowser")
3955
webbrowser.open('https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation')
4056
print separator
41-
else:
4257
print "> PyUp: Please use this link to install PIP FIRST, otherwise PyUp is not able to work: https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation"
4358
sys.exit()
4459
os.system("pause")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /