osohq / oso

Oso is a batteries-included framework for building authorization in your application.
https://docs.osohq.com
Apache License 2.0
3.47k stars 174 forks source link

pypi oso 32-bit ? #685

Open iarp opened 3 years ago

iarp commented 3 years ago

Is there any particular reason why pypi is missing a 32 bit version for windows? I see the 64bit is there and 32 seems to be for all other OS's

gj commented 3 years ago

I don't think we currently build 32-bit wheels for any platform, but we can definitely look into what that would entail. We've had a few folks run into this issue before with the default Windows system Python being a 32-bit version, but they were able to switch to a 64-bit Python. Do you have a specific use case in mind for a 32-bit package, or is it more just curiosity about why we don't build them currently?

Talked this over a bit with @samscott89, and we think the major blockers are configuring our build process to compile the Rust core as a 32-bit library and configuring cibuildwheel to produce 32-bit versions.

iarp commented 3 years ago

My original limiting factor was another library not supporting 64-bit, but I just checked and they now support 64-bit. At this point it's just a matter of having 58 projects all with 32-bit virtualenv's. I'll go ahead and install 64-bit python and use it just for my oso testing.

I thought x86_64 was supporting both only because I saw windows which only states 64.

saolsen commented 3 years ago

Right now we only have 64 bit builds (for every platform / language)

I looked into this a while back, there were some problems with python's cffi library working for 32 bit windows. Adding 32 bit builds for everything would be cool though and is probably possible just need to work through the details (which are a bit more complicated than just configuring it).

gj commented 3 years ago

@iarp would you mind if we kept this issue open? We would like to support 32-bit builds. This issue would be a good place for others to voice their interest, helping us prioritize the work against other ongoing projects.

ETA: Thank you!