NYPD cops booted a homeless man from a box disguised as a dumpster in Soho — then apparently reconsidered all the bad press that the mayor might get and returned the contraption without even a summons Sunday.

“They just said, ‘Here’s your stuff. Have a great weekend,’ ” said Shane Duffy, one of the two do-gooder models who created the home for down-on-his-luck street person Damien Cummings.

As The Post exclusively reported Sunday, Duffy and business partner Phil Sullivan had built the box — which includes a bed, thermal insulation and solar panels to power electronics — and offered it to Cummings as they film a documentary about homelessness.

Cummings said he chained his makeshift abode to a fence near Mercer and Broome streets from June to October, then moved it to Wooster and Spring streets for the past six months.

The Post called the NYPD for comment at about 4 p.m. Saturday. Fifteen minutes later, a couple officers came by and photographed it and left. Then at 6 p.m., police dragged away the makeshift home, promising Duffy he could pick it up — along with a summons for erecting an illegal shelter — the next day.

But when Duffy, Sullivan, Cummings and their film crew showed up at the First Precinct on Sunday morning, cops gave them a pass.

“Last night, they told us whoever comes to pick up the unit tomorrow morning will get a summons. Then this morning, they told us that there wasn’t going to be a summons,” Duffy said. “I think they were feeling pressure from on high. They didn’t want the bad press, you know, cops being shown taking a homeless person’s home away and then giving him a ticket.”

Police even helped them load it into a rental truck, according to Duffy.

The three men returned the metal box to the corner of Wooster and Spring streets Sunday afternoon. A police car later passed by the scene but didn’t stop.

A little while later, the men decided to play it safe, loaded the box back up in the truck and drove off.

Cummings has been living on city streets for nearly a decade and said the police were being uncharacteristically nice.

“It was refreshing to see such good treatment from the police,” he said. “But that’s only for a day. I will run into the same cops, and I’m not sure they’ll be acting the same way. If there were no cameras here, maybe they would have me waiting around for a lot longer. If I didn’t have somebody behind me like the press and the cameras here, it would have been much different I think. I would have got a lot more run around.”

Duffy and Sullivan put Cummings up at the Gatsby Hotel on Saturday night and the Bowery Grand on Sunday, but did not make long-term plans for the man.

Mayor de Blasio, who has been struggling to tamp down a homeless population that has boomed under his watch, ignored The Post’s requests for comment at an unrelated press conference Sunday.

Police officials said precinct cops were allowed to use their discretion and deemed that no enforcement was necessary.