What I am saying is that due to reasons such as social selection, bias, expectations of what women should do, discrimination etc less women are interested in software.
As you said, women are less interested in software, they also in general are less interested in science and technical tools than men are, this is why we can observe so few women in tech. I have no idea why this is, it could be "expectations of what women should do" or maybe and I know that this sounds bad but it can't be ignored just because it doesn't sound good, a natural aversion in many women (not all!) for scientific matters or maybe a combination of both and more. I have absolutely no idea as neither reasons have been proven scientifically so I won't venture into any wild guess. But blaming it on white males imposed discrimination seems ridiculous and misses the point.
Development looks like a boys club from the outside. Changing that perception will require active effort from the inside. No one puts in the effort because "We aren't sexists! We love women! (We love women so much! [Please, women, come talk to us!])" Apparently liking women forgives being completely incapable of creating an inviting environ.
None of this comes as a big surprise to anyone who knows developers. Right leaning people who are overwhelmingly from privileged backgrounds and spend most of their time absorbed in a subculture that places pride in technical accomplishment above manners. This is not a group to expect a warm welcome from, especially if it means that they might have to tell less crude jokes, or take down some objectifying imagery.
But sure, it could be a natural aversion. That's a studied hypothesis with thousands of hours of research behind it showing...something, somewhere...right? The truth must be somewhere in the middle, I guess.