def METHOD_NAME(self, env):
    if "+python" in self.spec:
        env.prepend_path("PYTHONPATH", python_platlib)
        if self.spec.satisfies("platform=darwin"):
            env.append_path(
                "DYLD_FALLBACK_LIBRARY_PATH", os.path.join(python_platlib, "faiss")
            )
        else:
            env.append_path("LD_LIBRARY_PATH", os.path.join(python_platlib, "faiss"))