Working with wheels

A third party has provided us with a tool we want to implement in a Viktor app. The tool is provided as a package wheel.

I am not familiar with working with wheels in general.

From the documentation I understand that there are requirements for the wheel: it should be CPython and is dependent on Python version and OS.

Could you provide me with the exact requirements for an implementation on the Viktor server?

Hi Thomas,

If possible you can try to compile a pure Python and OS independent wheel. You would only need CPython if you use C extensions or compiled code. If you need to make it platform specific, because you are using platform-specific dependencies, I would suggest compiling a manylinux wheel so that it can run on any Linux distribution. However, in that case you would also need to compile a Windows wheel so that you can use that in local development (assuming you develop on Windows).

Regards,

Raoul

Hi Raoul,

Thank you very much!

I was a bit confused by the text under How do I use a Python package which is not available on Windows? on Frequently Asked Questions | VIKTOR Documentation

There is stated that it should be a CPython wheel and nothing on OS or Python version. A little more explanation there would have made it clearer for me.

Regards,
Thomas

I understand the confusion. I don’t think this note is fully accurate anymore. Will remove it!

1 Like