Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.szaf.org!news.gnuher.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Joep van Delft Newsgroups: comp.lang.python Subject: Multiple python versions, one dev environment??? Date: Thu, 17 Jul 2014 17:32:31 +0200 Organization: 1&1 Internet AG Lines: 43 Message-ID: <20140717173231.7cfefae5@xs4all.nl> NNTP-Posting-Host: brln-4d0c814b.pool.mediaways.net Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: online.de 1405611152 32229 77.12.129.75 (17 Jul 2014 15:32:32 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 17 Jul 2014 15:32:32 +0000 (UTC) X-Newsreader: Claws Mail 3.10.1 (GTK+ 2.24.24; i686-pc-linux-gnu) Xref: csiph.com comp.lang.python:74643 Hello! The condensed version of the question would probably be: How does one deal with multiple interpreters and one package where you want to try some changes? The background: I made a trivial change to some package (docutils) to scratch a personal itch, and I want to offer this back to the community (whether it will be accepted or not). Because of this, I ran into some issues. Some facts: 1. Python3 is my main interpreter. 2. The tests of docutils only run under python2. 3. I desire not to touch my distribution's version of site-packagesX-Y. 4. I prefer to have one and only one development directory of my target package. My confusions: 1. Is it possible to have one source control managed directory of some package, which is used by two versions of python? 2. I assume that the *.pyc-files generated while using some python source are version dependent. What is the recommended way to have 'em both installed? 3. The way I have stumped a wall over here, is the puzzle of how to make python2 have a different $PYTHONPATH as python3. I hope to hear how this strategy is silly :) 4. I have contemplated the way of linking the source files from my development directory into user specified site-packages directories. Problem 3. still is valid. 5. Should venv and friends/foes com into play? If so: How? Appreciate any light shed on these issues. Thanks! Joep