Add the pastry ingredients to a pan on the stove and mix over medium-high heat. Bring to a boil, remove from the heat, add the flour and quickly stir into the mixture. Return back to medium heat and stir constantly until the mixture pulls away from the pan.