Alfonso Gomez-Rejon (“The Town That Dreaded Sundown”) will direct, while Dan Fogelman (“Imagine”) will produce. Jesse Andrews adapted his own debut novel, and the screenplay was voted to the Top 10 of the 2012 Black List.

A coming-of-age tale in the vein of classic John Hughes movies, “Me & Earl” follows a quirky high school student (Mann) in Pittsburgh who is forced by his mother to befriend a sick girl (Cooke) he once knew when they attended Hebrew school together. Well-liked by every clique in school without actually belonging to any of them, the young man's commitment to the new friendship changes his life.

Neither Mann nor Cooke's deals have closed just yet, but both are expected to in the coming days.

Mann, who is best known for playing the lead in “Project X,” recently wrapped Kyle Newman's “Barely Lethal” with Hailee Steinfeld and Jessica Alba. He'll soon be seen opposite Kristen Wiig in “Welcome to Me” and alongside James Franco in “Memoria.”

The 22-year-old actor, who has co-starred in big studio movies such as “Beautiful Creatures” and “Hansel & Gretel: Witch Hunters,” also leads the indie movie “Outliving Emily,” which co-stars Zosia Mamet (“Girls”) and Adam Rose (“Up in the Air”).