Install and run two versions concurrently
Posted: Tue Dec 31, 2019 11:20 pm
I am writing some test for a package and I'd like to test it against both 1.3 and 2.0 branches. I'm having trouble getting both versions installed on one system at the same time.
Note, I'm not trying to have two daemons serve the same torrents. Just want to run coverage tests on my package against both versions at the same time.
My first idea was to try to trick apt-get to allow me to install both versions at once. But I couldn't figure out how to hack the ppa to get it to install as deluge2 for instance (and not overwrite the installed 1.3 version).
Another passing thought was to find some docker images with deluge that I could run against. But I'm hesitant to try that because of unfamiliarity with docker and also wanting to test against latest Deluge sources automatically.
So, what I'm trying now, is installing from source.
Since this is just a testing environment that gets destroyed after ever run, I don't see the advantage of "installing" in the conventional sense. I expect I should be able to "build" the sources and "run" directly from there. But I'm not finding an obvious executable in `build` after running `python2 setup.py build`.
Full disclosure, I'm not well versed in how Python installs packages normally.
Looking at it with my under informed eyes, do I need to copy to `.../site-packages`? This doesn't bode well for installing Deluge2 at the same time since I expect they would conflict. Is there some trivial way to call it deluge2 instead that I'm unaware of?
Note, I'm not trying to have two daemons serve the same torrents. Just want to run coverage tests on my package against both versions at the same time.
My first idea was to try to trick apt-get to allow me to install both versions at once. But I couldn't figure out how to hack the ppa to get it to install as deluge2 for instance (and not overwrite the installed 1.3 version).
Another passing thought was to find some docker images with deluge that I could run against. But I'm hesitant to try that because of unfamiliarity with docker and also wanting to test against latest Deluge sources automatically.
So, what I'm trying now, is installing from source.
Since this is just a testing environment that gets destroyed after ever run, I don't see the advantage of "installing" in the conventional sense. I expect I should be able to "build" the sources and "run" directly from there. But I'm not finding an obvious executable in `build` after running `python2 setup.py build`.
Full disclosure, I'm not well versed in how Python installs packages normally.
Looking at it with my under informed eyes, do I need to copy to `.../site-packages`? This doesn't bode well for installing Deluge2 at the same time since I expect they would conflict. Is there some trivial way to call it deluge2 instead that I'm unaware of?