A federal judge on Tuesday ordered Gov. Andrew Cuomo to set an official date for a special election in the vacant 11th congressional district, which covers Staten Island and Brooklyn.

If Cuomo fails to call a special election in the district by noon on Friday, the court will set one itself, U.S. District Court Judge Jack Weinstein wrote in the ruling.

The lawsuit forcing Cuomo’s hand on the special election was filed in part by Staten Island attorney Ronald Castorina, a Republican who also sits on the city Board of Elections. He filed the suit in his capacity as a private citizen.

Castorina in a statement said he is “hopeful that the Governor will heed the court’s guidance and call for the election immediately, as not to further disenfranchise the voters of the 11th Congressional District. The ball is now in the Governor’s court.”

Cuomo spokeswoman Melissa DeRosa said in a statement Cuomo would set a special election date “shortly” — which the state had previously indicated in court filings last week.

“As reflected in the State’s papers filed last week, the Governor will announce the date for the Special Election for New York’s 11th Congressional District shortly, consistent with our constitutional obligation and in a manner that balances both the economic impact of the election as well as the need for fair representation,” DeRosa said.

Cuomo last week was non-committal on calling an election, telling reporters in Rockland County that such elections are “expensive to conduct.”

The 11th congressional district has been an open seat since the start of the year, following Republican Rep. Michael Grimm’s resignation after he was charged with tax evasion.

Republicans have settled on Staten Island District Attorney Dan Donovan to run for the seat; Democrats appear to be coalescing around Assemblyman Bill Colton, but are yet to formally back a candidate.

Castorina – Cuomo Decision by Nick Reisman