I'm trying to package a project that is mainly based on python 3 but uses some python 2 sub-projects (because of some specific dependencies). So the way that the python 3 modules use the python 2 programs is by calling them explicitly using Popen (because we can't just import them).
I've tried using pipenv but it seems that I can't create an environment for python 2 and python 3. I tried creating a python script that just creates wheels from all of the projects (using both of the versions) but it seems kind of hacky and wrong.
So the question is - What is the best way to package a project that uses multiple python versions?