Have you tried squirting some water on him when he is climbing your leg? I remember this from C & K, except that they didn't climb, they jumped on the leg and then hold on to it -with nails Anyway, we stopped it by yelling a lot (LOL) and by squirting water.
Good luck with Basil! He'll grow out of it!