Pre heat oven to 350 degrees.
Butter or oil a cake pan and line it with parchment and then grease and flour the parchment, (use either an 8 x 3 inch, which is what I used here, if you are planning on cutting layers, or a 9-inch cake or spring form pan if you are only frosting the top and sides).
Place the olive oil, eggs, sugars and vanilla in a large bowl and stir until mixed well.
Add the grated butternut squash and mix until well combined.
In a medium bowl, add the flour, salt, baking soda, baking power, spices, and nuts and/or raisins, and give it a good stir.
Add the dry ingredients to the wet ingredients and mix until fully incorporated.
Pour batter into prepared pan, place on the middle rack of oven, and bake for 1 hour and 15 to 20 minutes.
Do not open the oven while the cake is cooking or the cake will most likely collapse – just let it bake.
Remove from oven and cool on rack.