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])
        else:
            die("Dependency listing file not found: {0}".format(reqFilePath), 7)
    except:
        die("Dependency installation failed!", 6)

After Change


            vcSetupPath = os.path.join(distHome, "VCForPython27.msi")
            locateFile(vcURL, vcSetupPath)
            c = ["msiexec", "/i", vcSetupPath, "/qb-"]
            log("Executing: {0}".format(" ".join(c)))
            subprocess.call(c)
            log("C++ Compiler for Python installed successfully")
    except:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: pantsbuild/pants
Commit Name: 2180a3d4364e48e9bc526e7a1264c5ffc2bf296b
Time: 2017-10-18
Author: clivingston45@gmail.com
File Name: src/python/pants/backend/python/tasks2/python_execution_task_base.py
Class Name: PythonExecutionTaskBase
Method Name: create_pex


Project Name: idaholab/raven
Commit Name: cd67dba10273d0d9c3d7ab331fcc3580efdd4d9c
Time: 2020-12-08
Author: andrea.alfonsi@inl.gov
File Name: framework/CodeInterfaces/WorkshopExamples/ProjectileInterface.py
Class Name: Projectile
Method Name: finalizeCodeOutput