wlav / cppyy

Other
391 stars 40 forks source link

can this run prior versions of python? #135

Closed ForkInABlender closed 1 year ago

ForkInABlender commented 1 year ago

Hi. I need to know if cppyy can load portions of python2.7 to load the modules to be used inside of python3+.

wlav commented 1 year ago

I don't understand the question ... Python2 and Python3 both export C functions with the same names but different semantics. I don't think it's even possible to fully sandbox the two b/c of global variables.

If, however, you're talking about doing development with one version of Python and deployment with another, there the only change needed when using cppyy, is cppyy itself. Only the CPyCppyy package (installed as a dependency) depends on Python version, not the generated run-time bindings. And yes, p2.7 is still supported for now.

wlav commented 1 year ago

Closing as no further response after 3 weeks.

ForkInABlender commented 1 year ago

Glad to know it is also supported in python 2.7, that makes forward compatibility easier as well as using multiple versions of python inside the vm as well as their modules.

Thank you.

ForkInABlender commented 1 year ago

y'all are baller.

Also, can you precompile the modules for windows 11 oses, please? it has a hard time running do to linker errors.

ForkInABlender commented 1 year ago

What I am allowed to share is that it supports loading jvm parts.