Re: rust and python

Marco Atzeri via Cygwin-apps <[email protected]> Tue, 30 Dec 2025 20:02:27 +0100
Newsgroups gmane.os.cygwin.applications
Message-ID <[email protected]>
On 30/12/2025 18:42, Jon Turney via Cygwin-apps wrote:
> On 30/12/2025 11:49, Marco Atzeri via Cygwin-apps wrote:
>> Hi Mantainers,
>>

>>
>> "python-cryptography" needed an additional package
>> as the wheel files were NOT in a suitable format
>>
>> ./dist/cryptography-46.0.3-cp312-abi3-cygwin_86_64.whl
>> ./dist/cryptography-46.0.3-cp39-abi3-cygwin_86_64.whl
>>
>> after installing the "python-maturin" packages the wheel files
>> were correctly built
>>
>> ./dist/cryptography-46.0.3-cp312-abi3-cygwin_3_6_5_x86_64.whl
>> ./dist/cryptography-46.0.3-cp39-abi3-cygwin_3_6_5_x86_64.whl
> 
> Hmm... coincidentally, I was recently looking at this logic [1] which 
> recognizes .whl filenames
> 
> I'm not sure if the matching there is just ad-hoc, or what it means when 
> python chooses to include the 'uname -r' ("kernel version") in the wheel 
> filename.
> 
> [1] https://cygwin.com/cgit/cygwin-apps/cygport/tree/cygclass/python- 
> wheel.cygclass#n193

it is not just the file name. I patched cygport to bypass the issue
but pip complained that the file was incorrect.

no clue why one cryptography has this issue and bcrypt no.

First time playing with rust for me.