From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Date: Tue, 12 Feb 2013 15:42:54 +0100 Subject: [Buildroot] [PATCH v2] Python 3, simple, external package support In-Reply-To: <20130212152155.0d3c5301@skate> References: <1360678441-3199-1-git-send-email-kpa_info@yahoo.fr> <20130212152155.0d3c5301@skate> Message-ID: <511A54EE.5010509@yahoo.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net On 02/12/2013 03:21 PM, Thomas Petazzoni wrote: > Dear Patrick Gerber, > > On Tue, 12 Feb 2013 15:13:56 +0100, Patrick Gerber wrote: >> This patch series refactor python support in buildroot to enable the use of >> from line 'This patch series refactor python support in buildroot to enable >> the use of external package with both python2 and python3. The packages >> python-bottle and python-serial have adapted as examples. >> >> To support others external package more work is needed as they are based on >> python setuptools. It's no more supported by python3 and should be replaced >> by "Distribute". This should be done in another patch series. > > Thanks, but it still doesn't answer the question: > > """ > As Samuel pointed it out, this unfortunately may break a number of > things in Buildroot. They are packages that depend on host-python, and > would only be capable of using an Python 2.x host-python. > > Or at least, I would like to have the confirmation that all packages > that depend on host-python continue to build normally when host-python > is Python 3. > > That said, some packages are not really clear about this. For example, > Scons uses the Python provided with the distribution, and not the > host-python built by Buildroot. > > As you can see, this is not a trivial topic. > """ > > Best regards, > > Thomas > Related with host-python, the only difference is that now the patch add a symlink in HOST_DIR. I agree that this could be a problem. I could edit the external python package to use "python" or "python3" depending of the selected version. This will not impact host-python at all. Does it seems good to you ? Patrick