def remove_requirements(requirements, name):
return [x for x in requirements if name != x.split(" ")[0]]
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.strip() for req in req_file.read().splitlines()]
dependency_links = []
// Linux specific requirements
if sys_platform == "linux" or sys_platform.startswith("linux"):
requirements = remove_requirements(requirements, "tensorflow-estimator")
// OSX specific requirements
elif sys_platform == "darwin":
requirements = requirements
// Windows specific requirements
elif sys_platform in ["win32","cygwin"] :
requirements = remove_requirements(requirements, "tensorflow-estimator")
requirements = remove_requirements(requirements,"wheel")
requirements.append("wheel == 0.26.0")