Ben Nemec 3f3cded06b Optimize Python install in deploy-targetcli
Installing Python to a ramdisk takes quite a long time because of
the way dracut checks for dependencies of every single file
installed.  We could avoid that, but then we might miss a required
library file.

This change alters the installation method to speed up
the process.  First, it creates a list of files that are needed and
then installs them all at once using inst_multiple instead of calling
inst on each file separately.  This doesn't make a huge difference,
but in my testing it is marginally faster.

Second, and more significantly, we don't need the *.pyo and *.pyc
files as those are simply an optimization to speed up module
loading.  Because the deploy ramdisk is a short-lived operation,
we probably lose more time transferring those extra files to the
target system than we save in improved load times.

In my testing, these two changes netted about a 20% improvement
in build times, and about 13% decrease in image size.

Change-Id: Ibc2b778c28fc9fb7177380dffe8dbce5722d0733
2015-06-22 13:19:14 -05:00
..
2015-02-12 10:41:32 +11:00
2015-05-17 02:07:40 +00:00
2015-02-12 10:41:32 +11:00
2015-06-03 09:13:00 -07:00
2015-05-19 19:22:43 +00:00
2015-05-19 19:22:43 +00:00
2015-04-08 07:01:24 +00:00
2015-02-12 10:41:32 +11:00
2015-05-06 15:49:59 +02:00
2015-06-02 05:35:03 +00:00
2015-02-12 10:41:32 +11:00
2015-06-01 02:14:41 +00:00
2015-06-03 10:48:18 +00:00
2015-02-12 10:41:32 +11:00
2015-02-12 10:41:32 +11:00
2015-04-14 21:53:38 +02:00
2015-02-12 10:41:32 +11:00
2015-05-04 14:18:51 +02:00
2015-02-12 10:41:32 +11:00
2015-03-04 23:11:27 +00:00
2015-02-12 10:41:32 +11:00