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)
long_description = open("README.md", encoding="utf-8").read()
with open("requirements.txt") as req_file:
requirements = req_file.read().splitlines()
dependency_links = []
// Linux specific requirements
if os == "Linux":
requirements = remove_requirement(requirements, "tensorflow-estimator")
requirements = remove_requirement(requirements, "lightwood")
requirements.append("lightwood == 0.6.7")
// OSX specific requirements
if os == "Darwin":
requirements = requirements
// Windows specific requirements
After Change
new_requirements.append(replace)
return new_requirements
sys_platform = sys.platform
about = {}
with open("mindsdb/__about__.py") as fp:
exec(fp.read(), about)
long_description = open("README.md", encoding="utf-8").read()
with open("requirements.txt") as req_file:
requirements = req_file.read().splitlines()
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__"],
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: geek-ai/MAgent
Commit Name: 2c00aa18540df4ab4c3afeacd44b556b3ce90782
Time: 2017-12-01
Author: zhenglianmin96@163.com
File Name: python/magent/utility.py
Class Name:
Method Name: download_file