It’s looking like a Buñuel bonanza in New York: The American musical-theater composer Stephen Sondheim and the British opera composer Thomas Adès have both written adaptations of the Surrealist Spanish filmmaker Luis Buñuel’s 1962 dark comedy “The Exterminating Angel,” and both are hoping for productions in New York in late 2017.

The Adès opera, also called “The Exterminating Angel,” had its premiere last week at the Salzburg Festival in Austria to strongly positive reviews, and it will travel to the Metropolitan Opera in the fall of 2017.

Mr. Sondheim has been working for several years with the playwright David Ives (“Venus in Fur”) on a musical based on two Buñuel films, “The Discreet Charm of the Bourgeoisie” and “The Exterminating Angel.” In remarks on Saturday at the Glimmerglass Festival in Cooperstown, N.Y., he said he now hopes to finish the work so it can be presented at the Public Theater, an Off Broadway nonprofit, at the same time as the work by Mr. Adès.

“I called Adès and we talked about it, and I said, ‘You know, for the five people in the world who really care about this sort of thing, it’ll be really interesting if the musical and the opera are done in the same year,’ which they are going to be,” Mr. Sondheim said, according to a transcript of his remarks provided by Glimmerglass. “Tom’s piece will be done at the Met next year and, if I can finish the score in time, our show will be done simultaneously at the Public Theater. And for people who are interested in the difference between operas and musicals, it ought to be an enlightening and provocative study.”