164b392ce45a1baa7523212c451fa3d20cb06450,setup.py,,main,#,64
Before Change
log("Installing Python dependencies")
reqFilePath = os.path.join(setupHome, "requirements.txt")
if os.path.isfile(reqFilePath):
reqItems = [line.strip() for line in open(reqFilePath)]
for r in reqItems:
log("Installing package: {0}".format(r))
subprocess.call([pipExePath, "install", "-U", "--upgrade", r])
After Change
pipExePath = os.path.join(os.path.dirname(sys.executable), r"Scripts\pip.exe")
setupHome = os.path.join(os.path.abspath(os.path.dirname(__file__)), "scripts")
distHome = os.path.join(os.path.abspath(os.path.dirname(__file__)), "dist")
try:
arcpy = __import__("arcpy")
info = arcpy.GetInstallInfo()
if tuple(map(int, (info["Version"].split(".")))) < tuple(map(int, ("10.3.1".split(".")))):
raise Exception("No ArcGIS")
except:
die("Unable to find ArcGIS 10.3.1 or above. Cannot proceed.", 99)
try:
log("Installing PIP")
pipPyPath = os.path.join(setupHome, "get-pip.py")
locateFile(pipURL, pipPyPath)
subprocess.call([sys.executable, pipPyPath])
if os.path.isfile(pipExePath):
log("PIP installed successfully")
else:
raise Exception("PIP failed")
subprocess.call([pipExePath, "install", "--upgrade", "pip"])
subprocess.call([pipExePath, "install", "--upgrade", "wheel"])
except:
die("PIP installation failed!", 1)
try:
if sys.version_info[0] == 2:
log("Installing Microsoft Visual C++ Compiler")
vcSetupPath = os.path.join(distHome, "VCForPython27.msi")
locateFile(vcURL, vcSetupPath)
c = ["msiexec", "/i", vcSetupPath, "/qb-"]
log("Executing: {0}".format(" ".join(c)))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: Esri/raster-functions
Commit Name: 164b392ce45a1baa7523212c451fa3d20cb06450
Time: 2015-05-21
Author: akferoz@esri.com
File Name: setup.py
Class Name:
Method Name: main
Project Name: rtavenar/tslearn
Commit Name: 58cb5e6c44bb9f3f85de74c85584e926b5954610
Time: 2019-06-28
Author: romain.tavenard@univ-rennes2.fr
File Name: setup.py
Class Name:
Method Name:
Project Name: chartbeat-labs/textacy
Commit Name: 03e098c84a14309b87528ef21ccb5e4f834de5f5
Time: 2020-03-01
Author: burtdewilde@gmail.com
File Name: setup.py
Class Name:
Method Name:
Project Name: Esri/raster-functions
Commit Name: 164b392ce45a1baa7523212c451fa3d20cb06450
Time: 2015-05-21
Author: akferoz@esri.com
File Name: setup.py
Class Name:
Method Name: main