Click to email this to a friend (Opens in new window)

The sun may be setting on “A Rainy Day in New York” — before the Woody Allen movie ever even sees the light of day.

Sources tell The Post that the film, which is due to be distributed by Amazon later this year, may not make it to the screen.

“‘Rainy Day’ will either not come out or [will] get dumped by Amazon without any p.r. or theatrical release,” said one film-industry executive.

Representatives for Amazon did not return requests for comment.

The one thing Allen has always had going for him — his ability to attract Hollywood’s brightest and best names — might be over.

According to the executive, “He’s having trouble casting his new film.”

This comes on the heels of the news that stars who have worked with the director are now disavowing him and donating their earnings from his movies to charity.

Ever since Dylan Farrow, his adoptive daughter with former girlfriend Mia Farrow, accused her father of having molested her in 1992, when she was 7 years old, A-listers have continued to work with the director. Allen has denied the allegations and in 1993 a court found “no credible evidence” to support the girl’s claims.

Complicating matters even more was the fact that, around the same time, Allen had an affair with Mia’s adopted daughter Soon-Yi Previn, then 19 years old, who would later become his wife.

But in the #MeToo age — which broke out after Allen’s son, Ronan, helped expose movie mogul Harvey Weinstein as a sexual predator in the New Yorker this past October — there’s no ignoring the situation. Stars are now forced to declare whether they stand with Allen or against him. And those who don’t choose a side risk being publicly shamed.

Several of the stars of “Rainy Day” have broken with Allen. Timothée Chalamet announced that he will donate his salary from the movie to charities for victims of assault. Co-star Selena Gomez is reportedly donating her payment to #TimesUp, as is Rebecca Hall, who has acted in two of the director’s works.

Meanwhile, Greta Gerwig (“To Rome With Love”), Colin Firth (“Magic in the Moonlight”), Chloë Sevigny (“Melinda and Melinda”), Rachel Brosnahan (“Crisis in Six Scenes”), Ellen Page (“To Rome With Love”) and David Krumholtz (“Wonder Wheel”) have all recently expressed regret about having worked with Allen. Earlier this month, Mira Sorvino, who won an Oscar for the director’s “Mighty Aphrodite” in 1996, wrote an open letter to Dylan saying she was “terribly sorry” for having worked with him.

Some are skeptical, however. A studio head told The Post, “How convenient for their conscience, now that it’s cool [to speak out].”

Meanwhile, Dylan has been beating the drum and calling out Hollywood — including Justin Timberlake, who co-starred in Allen’s “Wonder Wheel” in 2017, but also wore a #TimesUp pin to this month’s Golden Globes — for hypocrisy.

On Tuesday, she tweeted her message to the singer, who has a very public month ahead of him with an upcoming Super Bowl LII halftime performance and the release of his new album: “You can’t support #TIMESUP and praise sexual predators at the same time. You can’t retain your credibility as an activist . . . and, at the same time, praise a sexual predator.”

For decades, Allen — who has made nearly 50 films — has had a reputation for providing actors with Oscar bait. In addition to Sorvino, Cate Blanchett (“Blue Jasmine”), Penélope Cruz (“Vicky Cristina Barcelona”), Michael Caine (“Hannah and Her Sisters”) and Diane Keaton (“Annie Hall”), among others, have won Academy Awards for their performances in his movies.

But these days, Hollywood cannot afford to be associated with an accused predator — even if it was willing to do so a year ago.

“Now, if a woman says [abuse] happened, it happened,” said one Tinseltown publicist. “After #MeToo, it’s utterly different circumstances. Actors don’t want their careers tarnished.”

The reasons why they’re denouncing him are a mixed bag. For some, it appears to be sincere regret and disgust — even if it took hearing from Dylan herself on “CBS This Morning” on Jan. 18, when she graphically detailed what happened during the alleged assault.

“[Her story was] beyond creepy,” said one actress who has auditioned for Allen in the past.

For others, it’s driven by peer pressure or the desire to align themselves with the woke #TimesUp movement.

“But where were these champions before [last] October?” the studio head asked. “It’s pathetic that it took the #MeToo movement for these actors to grow a pair of balls. It’s embarrassing that Allen’s been revered by Hollywood for years and constantly nominated for awards. Same with Roman Polanski [the director who pled guilty to unlawful intercourse with a 13-year-old girl in 1977, then fled the US for France to avoid extradition].”

And still for others, it’s a shrewd business move. The publicist admits that donating earnings to an appropriate charity looks good for the celebrities.

Then there are the actors who have chosen to stay mum on the subject or given vague, neutral quotes about it.

The New York Post reached out to other stars in “Rainy Day” about their positions, but reps for Liev Schreiber, Jude Law, Cherry Jones and Elle Fanning did not respond. They join the silent ranks of past Allen stars such as Cruz, Caine, Meryl Streep, Anjelica Huston, Sean Penn, Emma Stone and Steve Carell.

In 2014, Blanchett said in response to Dylan’s letter, “It’s obviously been a long and painful situation for the family, and I hope they find some resolution and peace.” She’s been quiet since.

Kate Winslet — who condemned Weinstein, whom she has worked with, but who starred in Allen’s “Wonder Wheel” as well as Polanski’s 2011 movie “Carnage” — told the New York Times that “as the actor . . . you just have to step away and say, ‘I don’t know anything, really, and whether any of it is true or false.’ ”

Some stars have spoken up in Allen’s defense in the past, but chosen to stay quiet about it more recently. Back in 2014, after Dylan penned an open letter accusing her estranged father of abuse, Scarlett Johansson — who has starred in three of Allen’s movies — called the cries against him “irresponsible.” (This from the same woman who, at last weekend’s Women’s March in Los Angeles, called out actor and accused sexual harasser James Franco as a hypocrite for also having worn a #TimesUp pin to the Golden Globes.)

So which is the smarter career move — to be quiet and hope it blows over, or to speak out?

“You’re damned if you do, damned if you don’t,” said one Hollywood agent. “Maybe saying nothing is the best thing. After all, is Cate Blanchett supposed to give back her Oscar?”

One insider points out that shaming actors may have uneven results.

“Name-calling Cate Blanchett or Penélope Cruz isn’t going to hurt their careers at this point,” said one awards campaigner. “It’s the younger actors who need to be scared.” Some speculate that millennial audiences have a high expectation of social consciousness from screen stars of their generation, such as Chalamet and Gomez.

As for older actors, some are steadfastly standing by Allen in light of his denials. Diane Keaton, who has appeared in eight Allen films and dated the director in the 1970s, commented, “I believe my friend.”

Alec Baldwin, who has worked with Allen three times, tweeted this month that “The renunciation of him and his work, no doubt, has some purpose. But it’s unfair and sad to me.”

He’s not alone in feeling this way. Several powerful Hollywood insiders told The Post they’re uncomfortable with the family history surrounding the allegations.

“If there was another accuser, there might be something to this,” said the publicist. “But there hasn’t been one. And Leslee Dart [Allen’s longtime rep and co-owner of p.r. agency 42 West] is not someone who’d defend a predator. And let’s face it — Mia Farrow is unhinged.”

Requests to interview Dylan and Ronan for this story went unanswered, as did a request to speak with Mia and Allen’s adopted son Moses, who claims that Mia was an abusive mother and who sides with his father.

“It’s like ‘The Crucible,’ ” said one entertainment exec of Hollywood’s recent Allen condemnation. “There’s never been any proof to [Dylan’s] claims. It was Mia’s fantasy created to avenge his cheating on her.”

Said a marketing exec, “Nobody comes off unscathed in this family minefield. And there’s no one to support.”

Insiders predict that, even if “A Rainy Day in New York” ever sees the light of day, none of its actors will even support their own work.

“There will be no premiere, no print or TV ads, no interviews. No one will promote it,” said a movie distribution executive.

“I wonder if it will even make Cannes?” speculated a film festival insider of the May event. “The French love him and don’t care about sex scandals. [Actresses Brigitte Bardot and Catherine Deneuve have scoffed at the #MeToo and #TimesUp movements.] But Amazon does. Jeff Bezos is not dumb.”

Allen can always go back to his old way of making movies — rather than raising production funds from Amazon or a traditional studio, he used to have his producer and sister, Letty Aronson, collect financial support from wealthy individuals in Europe.

“He will keep on making films, maybe in Europe, maybe with unknowns,” said another Hollywood insider of the director, whose films have never been big moneymakers. (His highest grossing is 2011’s “Midnight in Paris,” which earned nearly $57 million domestically.)

The distribution exec has one idea for Allen: “Maybe he should make a horror film. Because that’s exactly what this is.”