Chop the onion into strips. Fry in a drizzle of olive oil in a large frying pan over medium heat for about 8 minutes, stirring occasionally.
While the onion is cooking, wash and peel the carrots. Grate them coarsely (not too finely).
Add the carrots to the pan and fry over medium heat for about 10 minutes, stirring constantly. You can add a tablespoon or two of water so that the mixture does not stick to the pan. Then set aside.
In a bowl, beat the egg with the cream using a whisk or fork.
Cut the sheep's cheese into small pieces. Add it to the bowl and crumble it with a fork, so that the cheese is diluted with the egg + cream mixture.
Then add all the spices and mix well.
Preheat the oven to 180°C.
Roll out the dough carefully on a sheet of baking paper. It may be crumbly and break: if so, press pieces together with your fingers to make a seam. Place the dough and baking paper in a pie dish. I use a pie dish of about 28 cm in diameter.
Prick the bottom of the pastry with a fork.
Spread the carrot + onion mixture over the bottom.
Pour the mixture over, trying to spread it evenly over the whole pie.
 Bake at 180°C. Check the cooking time after 25 minutes, and adjust the cooking time according to your oven (about 5 to 10 minutes more). The pastry should be cooked and hardened and the mixture should no longer be liquid.
Once the pastry is cooked, remove the pie from the pan and leave to cool on a wire rack.