545f96736113419449f5d8181211be4c17a678fa,setup.py,,,#,9

Before Change


def remove_requirement(requirements, name):
    return [x for x in requirements if name != x.split(" ")[0]]

os = platform.system()

about = {}
with open("mindsdb/__about__.py") as fp:
    exec(fp.read(), about)

After Change


dependency_links = []

// Linux specific requirements
if sys_platform == "linux" or sys_platform.startswith("linux"):
    requirements = remove_requirement(requirements, "tensorflow-estimator")

// OSX specific requirements
elif sys_platform == "darwin":
    requirements = requirements

// Windows specific requirements
elif sys_platform in ["win32","cygwin","windows"] :
    requirements = remove_requirement(requirements, "tensorflow-estimator")
    requirements = remove_requirement(requirements,"wheel", replace="wheel == 0.26.0")

else:
    print("\n\n====================\n\nError, platform {sys_platform} not recognized, proceeding to install anyway, but mindsdb might not work properly !\n\n====================\n\n")

setuptools.setup(
    name=about["__title__"],
    version=about["__version__"],
    url=about["__github__"],
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: mindsdb/mindsdb
Commit Name: 545f96736113419449f5d8181211be4c17a678fa
Time: 2019-07-25
Author: george@cerebralab.com
File Name: setup.py
Class Name:
Method Name:


Project Name: mindsdb/mindsdb
Commit Name: 8c297ee989bdd23337d6107cc97e42241e07650a
Time: 2019-07-23
Author: george@cerebralab.com
File Name: setup.py
Class Name:
Method Name:


Project Name: Pinafore/qb
Commit Name: f0323d19f5fd0bd3a4f78e394d6587b72bcc1d8e
Time: 2015-09-30
Author: jordanbg@gmail.com
File Name: util/buzzer.py
Class Name:
Method Name: