<feed xmlns='http://www.w3.org/2005/Atom'>
<title>buildroot/package/python/python.mk, branch 2016.08</title>
<subtitle>OpenPOWER buildroot sources</subtitle>
<id>https://git.raptorcs.com/git/buildroot/atom?h=2016.08</id>
<link rel='self' href='https://git.raptorcs.com/git/buildroot/atom?h=2016.08'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/'/>
<updated>2016-07-05T13:53:05+00:00</updated>
<entry>
<title>packages: use the &lt;PKG&gt;_TARGET_FINALIZE_HOOKS</title>
<updated>2016-07-05T13:53:05+00:00</updated>
<author>
<name>Yann E. MORIN</name>
<email>yann.morin.1998@free.fr</email>
</author>
<published>2016-06-22T19:07:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=50adab522c0fbf1c99b904b8513200b114eb4a0b'/>
<id>urn:sha1:50adab522c0fbf1c99b904b8513200b114eb4a0b</id>
<content type='text'>
Register package-specific target-finalize hooks with the
newly-introduced &lt;PKG&gt;_TARGET_FINALIZE_HOOKS.

This incidentally fixes luarocks, which was registering target-finalize
hooks even when it was not enabled.

To be noted, the skeleton package is not converted, because it is not
optional, we always have it; so its hooks would always be registered
anyway. Besides, the followup patches would render this conversion moot
anyway, since those hooks would be spread across the various skeleton
packages.

Signed-off-by: "Yann E. MORIN" &lt;yann.morin.1998@free.fr&gt;
Reviewed-by: Romain Naour &lt;romain.naour@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/python: bump version to 2.7.12</title>
<updated>2016-06-29T20:09:51+00:00</updated>
<author>
<name>Bernd Kuhls</name>
<email>bernd.kuhls@t-online.de</email>
</author>
<published>2016-06-29T18:48:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=d779e82840e3c9d58d86957d412fa6098e2a7157'/>
<id>urn:sha1:d779e82840e3c9d58d86957d412fa6098e2a7157</id>
<content type='text'>
Rebased 011-remove-python-symlink.patch

[Peter: correct .hash file comment as pointed out by Baruch]
Signed-off-by: Bernd Kuhls &lt;bernd.kuhls@t-online.de&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>python/python3: globalize *.pyc files compilation</title>
<updated>2016-05-26T20:07:35+00:00</updated>
<author>
<name>Yegor Yefremov</name>
<email>yegorslists@googlemail.com</email>
</author>
<published>2016-05-17T21:19:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=549bbba67f5c1656f566b08911aa553e57dc3f59'/>
<id>urn:sha1:549bbba67f5c1656f566b08911aa553e57dc3f59</id>
<content type='text'>
Currently, each python package (be it the python interpreter package
itself or external python modules) is responsible for compiling its
.py into .pyc files. Unfortunately, this is not ideal as some packages
only install .py files without compiling them into .pyc files. In this
case, if the Buildroot configuration specifies to keep only the .pyc
files, the .py files are removed and lost.

To address this, this commit changes the logic by making the
compilation of .pyc files a global operation: the python interpreter
packages register a target finalize hook that is in charge of
compiling all installed .py files.

The *.pyc generation on a per package basis is disabled in the
python-package infrastructure by passing the "--no-compile" option to
setup.py.

The *.pyc generation for the Python interpreter internal modules is
disabled through --disable-pyc-build configure option.

A small helper script is used to perform the compilation, the purpose
of this script is to abort the compilation process if one of the .py
file cannot be compiled. It has been provided by Samuel Martin and
integrated into this commit.

Signed-off-by: Yegor Yefremov &lt;yegorslists@googlemail.com&gt;
Cc: Samuel Martin &lt;s.martin49@gmail.com&gt;
[Thomas:
 - rework for python 3.5
 - integrate Samuel proposal that allows to detect compilation
   failures.]
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Reviewed-by: Samuel Martin &lt;s.martin49@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>python/python3: use --no-run-if-empty xargs option</title>
<updated>2016-05-26T20:07:11+00:00</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2016-05-17T21:19:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=f06f58f8fd443968942e100e3c70a29248b2f368'/>
<id>urn:sha1:f06f58f8fd443968942e100e3c70a29248b2f368</id>
<content type='text'>
As suggested by Samuel Martin, this commit adds the option
--no-run-if-empty xargs option to the "find ... | xargs ..." logic used
in the python and python3 target-finalize hooks to remove py/pyc/pyo
files. This ensures that the command doesn't fail if there are no files
matching the pattern.

Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Reviewed-by: Samuel Martin &lt;s.martin49@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>python: remove *.pyo files</title>
<updated>2016-05-17T20:47:33+00:00</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2016-05-01T20:15:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=59972daa39fe90de7c353eaa79834571efb4cd08'/>
<id>urn:sha1:59972daa39fe90de7c353eaa79834571efb4cd08</id>
<content type='text'>
Even though we disable the build of .pyo files in the interpreter,
nothing prevents other packages to install them. Since we only want to
keep either .py or .pyc or both, let's add a target finalize hooks
that removes all .pyo files.

Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
[Thomas: add --no-run-if-empty option to xargs, as suggested by Samuel.]
Reviewed-by: Samuel Martin &lt;s.martin49@gmail.com&gt;
</content>
</entry>
<entry>
<title>python: align the target finalize hooks with python3</title>
<updated>2016-05-17T20:46:29+00:00</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2016-05-01T20:15:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=f76543601ff21af23e2828fcb9b3262378120d78'/>
<id>urn:sha1:f76543601ff21af23e2828fcb9b3262378120d78</id>
<content type='text'>
Since the bump of python3 to 3.5.x, the target finalize hooks
registered by the python3 have been changed a little bit. For the sake
of consistency, this commit aligns the target finalize hooks
registered by the python package so that they look the same as the
ones used by python3.

Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Reviewed-by: Samuel Martin &lt;s.martin49@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>package/python: bump to version 2.7.11</title>
<updated>2015-12-12T13:16:27+00:00</updated>
<author>
<name>Jörg Krause</name>
<email>joerg.krause@embedded.rocks</email>
</author>
<published>2015-12-11T14:10:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=9fd47ce1a84c335a4d57b995571534ebfb0b79e5'/>
<id>urn:sha1:9fd47ce1a84c335a4d57b995571534ebfb0b79e5</id>
<content type='text'>
Signed-off-by: Jörg Krause &lt;joerg.krause@embedded.rocks&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Tested-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
 [Thomas: quick run-time test on ARM.]
</content>
</entry>
<entry>
<title>python: bump to 2.7.10</title>
<updated>2015-06-22T21:13:46+00:00</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2015-06-16T21:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=7076e6f61cbcd45f463eb70ab1ffbb8ff7f27819'/>
<id>urn:sha1:7076e6f61cbcd45f463eb70ab1ffbb8ff7f27819</id>
<content type='text'>
Patches are simply refreshed, except
004-sysconfigdata-install-location.patch where a minor conflict
resolution was needed.

[Peter: fixup .hash as pointed out by Arnout]
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) &lt;arnout@mind.be&gt;
Signed-off-by: Peter Korsgaard &lt;peter@korsgaard.com&gt;
</content>
</entry>
<entry>
<title>python: add an option to make the ossaudiodev module optional for the target</title>
<updated>2015-01-10T15:19:26+00:00</updated>
<author>
<name>Thomas Petazzoni</name>
<email>thomas.petazzoni@free-electrons.com</email>
</author>
<published>2015-01-10T15:19:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=9b79f2a637f6fa9a42ebabc6605ff3bbed792e47'/>
<id>urn:sha1:9b79f2a637f6fa9a42ebabc6605ff3bbed792e47</id>
<content type='text'>
Now that we have a configure option in Python to enable/disable the
ossaudiodev module, this commit adds a configuration option to the
target Python to explicitly enable/disable this module.

Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>python: disable building ossaudiodev module for host-python</title>
<updated>2015-01-10T14:59:45+00:00</updated>
<author>
<name>Zoltan Gyarmati</name>
<email>mr.zoltan.gyarmati@gmail.com</email>
</author>
<published>2015-01-08T10:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/buildroot/commit/?id=9c335f1838ec368840ca8292eb3b6c23b5f9907d'/>
<id>urn:sha1:9c335f1838ec368840ca8292eb3b6c23b5f9907d</id>
<content type='text'>
This module is not needed to build the target Python, and can cause
some build issues on certain systems (when &lt;linux/soundcard.h&gt; does
not contain the OSS related definitions).

Signed-off-by: Zoltan Gyarmati &lt;mr.zoltan.gyarmati@gmail.com&gt;
Signed-off-by: Thomas Petazzoni &lt;thomas.petazzoni@free-electrons.com&gt;
</content>
</entry>
</feed>
