// Find the requirements and versions
with open(str(REQUIREMENTS_FILE.resolve())) as file:
requirements = [line.strip() for line in file.readlines()]
// We build from source on windows, otherwise, we looks for a wheel
if sys.platform != "win32":
After Change
requirements = []
with open(str(REQUIREMENTS_FILE.resolve())) as file:
for line in file:
requirement = line.strip()
match = re.match(r"^([A-Za-z\-0-9]+)", requirement)
_, match_end = match.span()
package = match.group(0)
version = requirement[match_end:].replace("==", "")
requirements.append(f"{package} {version}")
// Render and write the meta.yaml file to $ROOT/conda/meta.yaml