[libvirt] [PATCH python] Add python3 to the automated build and RPM
Martin Kletzander
mkletzan at redhat.com
Thu Dec 12 07:59:33 UTC 2013
On Wed, Dec 11, 2013 at 04:31:46PM +0000, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> This updates autobuild.sh to test the python3 build process.
> The RPM specfile is changed to build a libvirt-python3 RPM
> on Fedora > 18
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> autobuild.sh | 6 ++++++
> libvirt-python.spec.in | 57 +++++++++++++++++++++++++++++++++++++++++++-------
> 2 files changed, 56 insertions(+), 7 deletions(-)
>
> diff --git a/autobuild.sh b/autobuild.sh
> index b3beaf1..c7d2661 100755
> --- a/autobuild.sh
> +++ b/autobuild.sh
> @@ -13,6 +13,12 @@ python setup.py build
> python setup.py test
> python setup.py install --root="$AUTOBUILD_INSTALL_ROOT"
>
I haven't tested it, but shouldn't these lines ^^, and others similar
to them, be changed to "python2" in case my default python version is
3? And if those "python2" are checked as well, it would be usable
even without python2.
Or just use %{__python2} and %{__python3} as Eric suggested.
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131212/4faecb82/attachment-0001.sig>
More information about the libvir-list
mailing list