// We build from source on windows, otherwise, we looks for a wheel
if sys.platform != "win32":
wheel = next(file for file in os.listdir(str(DIST_PATH.resolve()))
if file.endswith(".whl"))
else:
wheel = None
// Numpy version is used for building
numpy_version = next(package for package in requirements if "numpy" in package)
// Render and write the meta.yaml file to $ROOT/conda/meta.yaml
context = {
"requirements": requirements,
"numpy_version": numpy_version,
"VERSION": VERSION,
"wheel": wheel,
"py_version": "{0.major}{0.minor}".format(sys.version_info)
}