Skip to content

Commit d164a1f

Browse files
committed
Adding core.py + Update the README and macPY.command
1 parent 871a1cc commit d164a1f

7 files changed

+23
-16
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
You just need to launch one of the tool corresponding to your system:
1313
- FOR WINDOWS: launch windowsPY.bat
1414
- FOR LINUX: launch linuxPY.sh
15-
- FOR MAC: launch macPY.sh
15+
- FOR MAC: launch macPY.command
1616

1717
And all is done it self, all your packages is now UP TO DATE!
1818

checkIfPipInstalled.py

-2
This file was deleted.

core.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import os
2+
import sys
3+
4+
print "PyUp is checking if pip is installed on this machine......"
5+
6+
# Here the code to do after for cheking if yes or no the pip is installed
7+
try:
8+
import pip
9+
print "Pip is present."
10+
print "-------------------------"
11+
print "PyUp is installing pip-review ....."
12+
os.system("pip install pip-review")
13+
os.system("pip review")
14+
os.system("pip-review --auto")
15+
except ImportError:
16+
print "Pip is not present."
17+
print "-------------------------"
18+
print "Please use this link to install PIP FIRST: https://github.com/BurntSushi/nfldb/wiki/Python-&-pip-Windows-installation"

linuxPY.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
python presentation.py
2-
python checkIfPipInstalled.py
3-
pip install pip-review
4-
pip review
5-
pip-review --auto
2+
python core.py

macPY.command

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
python presentation.py
2+
python core.py

macPY.sh

-5
This file was deleted.

windowsPY.bat

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
python presentation.py
2-
python checkIfPipInstalled.py
3-
pip install pip-review
4-
pip review
5-
pip-review --auto
2+
python core.py

0 commit comments

Comments
 (0)