A Montreal man has been released on bail with conditions, after he was charged in connection with possessing homemade bombs.

Jordi Antunes-Barros was arrested in May after police found 19 homemade explosive devices in his family's home in Ahuntsic-Cartierville.

He was charged with possession of incendiary material, possession of a weapon for a dangerous purpose, using explosives and possession without lawful excuse.

After undergoing a 30-day psychiatric evaluation at the Philippe Pinel Institute​, Antunes-Barros was granted bail on Wednesday.

The 18-year-old is not allowed to have access to the internet and cannot possess firearms or explosives.

He is only permitted to leave home when accompanied by a family member.