As I was testing the PoC for AIP-69 (#40224) for Windows compatability I saw some error beings raised because of problematic import of fnctl in Windows.
This is used (and was introduced by me) to lock exclusive access for virtualenv install. But other code is not affected. Therefore moved the import to the location where needed and... whoops. PoC with Windows was (almost) working.
This PR therefore does not enable Windows support but fixes one of the problems.
As I was testing the PoC for AIP-69 (#40224) for Windows compatability I saw some error beings raised because of problematic import of fnctl in Windows. This is used (and was introduced by me) to lock exclusive access for virtualenv install. But other code is not affected. Therefore moved the import to the location where needed and... whoops. PoC with Windows was (almost) working.
This PR therefore does not enable Windows support but fixes one of the problems.
related: #10388