[Buildroot] [PATCH 1/2] python: enable bzip2 in host variant

Eric Le Bihan eric.le.bihan.dev at free.fr
Thu Jun 16 20:43:40 UTC 2016


Le Thu, 16 Jun 2016 00:01:31 +0200,
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> a écrit :

> On Sun, 24 Apr 2016 16:39:48 +0200, Eric Le Bihan wrote:
> > Enable support for bzip2 in Python host variant, so the tarfile
> > module works properly.
> > 
> > Signed-off-by: Eric Le Bihan <eric.le.bihan.dev at free.fr>  
> 
> Could you give some more details about this? The tarfile module seems
> to only import the bz2 module when a bzip2-compressed file is handled.
> Is this actually the case with rust?

This was required because my initial take on Rust let the build process
download the rust-stage0 bzip2 tarball and uncompress it on its own. As
the bootstrap binary will now be provided by the rust-bootstrap
package, this is not needed anymore.

> Indeed, host-python is used by numerous packages, and we're trying to
> not add too many dependencies to host-python. On the other hand,
> building bzip2 is pretty fast, so maybe it's reasonable to add it as a
> mandatory dependency of host-python.

bz2 tarballs are widespread. So having support for this format in
host-python, regardless of Rust, will benefit the user.

Regards,

-- 
ELB



More information about the buildroot mailing list