Message ID | 1441396383-17304-1-git-send-email-armbru@redhat.com |
---|---|
State | New |
Headers | show |
On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: > RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back > to 10.6. > > Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> I wonder if we're ever going to need to add that Python 3 support the error message alludes to :-) thanks -- PMM
On Fri, Sep 04, 2015 at 11:44:17PM +0100, Peter Maydell wrote: > On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: > > RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back > > to 10.6. > > > > Signed-off-by: Markus Armbruster <armbru@redhat.com> > > Reviewed-by: Peter Maydell <peter.maydell@linaro.org> > > I wonder if we're ever going to need to add that Python 3 > support the error message alludes to :-) Possibly, but for that to be practical, we'd really need to make Python 2.7 be the min version, so Py3 is probably a good way off in the future yet. There's no risk of Py2 dieing out any time soon so no rush :-) Regards, Daniel
On Fri, Sep 04, 2015 at 09:53:03PM +0200, Markus Armbruster wrote: > RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back > to 10.6. > > Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Regards, Daniel
"Daniel P. Berrange" <berrange@redhat.com> wrote: > On Fri, Sep 04, 2015 at 11:44:17PM +0100, Peter Maydell wrote: > > On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: > > > RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back > > > to 10.6. I am actually building qemu on CentOS 5.11 with Python 2.4.3. I can probably install Python 2.6 on the system if necessary to build. Is the Python requirement just a build requirement or is it (libraries?) also needed on the machine where Qemu is run? We actually ran into this already with libgmodule where the CentOS 5.11 version was too old. We installed archive only libgmodule libraries so that we could build qemu on CentOS 5.11 using the archive libgmodule library and then users could run Qemu on different Centos 5.11 systems without having to install a newer libgmodule on their system. Steve Ellcey sellcey@imgtec.com
On 9 September 2015 at 18:39, Steve Ellcey <sellcey@imgtec.com> wrote: > > "Daniel P. Berrange" <berrange@redhat.com> wrote: > >> On Fri, Sep 04, 2015 at 11:44:17PM +0100, Peter Maydell wrote: >> > On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: >> > > RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back >> > > to 10.6. > > I am actually building qemu on CentOS 5.11 with Python 2.4.3. I can probably > install Python 2.6 on the system if necessary to build. Is the Python > requirement just a build requirement or is it (libraries?) also needed on the > machine where Qemu is run? Python should just be a build-time requirement. > We actually ran into this already with libgmodule where the CentOS 5.11 > version was too old. We installed archive only libgmodule libraries so > that we could build qemu on CentOS 5.11 using the archive libgmodule library > and then users could run Qemu on different Centos 5.11 systems without having > to install a newer libgmodule on their system. Yes, I'm afraid that Centos 5 and RHEL 5 are no longer on our list of supported host OSes (support was dropped for QEMU 2.4). So you're likely to find that you need to provide updated local versions of various libraries/tools/etc. thanks -- PMM
ping On 09/04/2015 04:44 PM, Peter Maydell wrote: > On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: >> RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back >> to 10.6. >> >> Signed-off-by: Markus Armbruster <armbru@redhat.com> > > Reviewed-by: Peter Maydell <peter.maydell@linaro.org> > > I wonder if we're ever going to need to add that Python 3 > support the error message alludes to :-) Which tree will this be going through? I found myself interested in using python's: first_expr if cond else second_expr ternary, until I realized it requires python 2.5 or greater and we haven't yet flipped the switch.
On 29 September 2015 at 22:35, Eric Blake <eblake@redhat.com> wrote: > ping > > On 09/04/2015 04:44 PM, Peter Maydell wrote: >> On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: >>> RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back >>> to 10.6. >>> >>> Signed-off-by: Markus Armbruster <armbru@redhat.com> >> >> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> >> >> I wonder if we're ever going to need to add that Python 3 >> support the error message alludes to :-) > > Which tree will this be going through? Random buildsystem stuff usually gets picked up by Paolo. -- PMM
Eric Blake <eblake@redhat.com> writes: > ping > > On 09/04/2015 04:44 PM, Peter Maydell wrote: >> On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: >>> RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back >>> to 10.6. >>> >>> Signed-off-by: Markus Armbruster <armbru@redhat.com> >> >> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> >> >> I wonder if we're ever going to need to add that Python 3 >> support the error message alludes to :-) > > Which tree will this be going through? I found myself interested in > using python's: > > first_expr if cond else second_expr > > ternary, until I realized it requires python 2.5 or greater and we > haven't yet flipped the switch. Go ahead and depend on it in your QAPI work, just mention it in the cover letter. If it isn't in master by the time I request a pull, I'll stick it in before your series.
On 30/09/2015 00:25, Peter Maydell wrote: > On 29 September 2015 at 22:35, Eric Blake <eblake@redhat.com> wrote: >> ping >> >> On 09/04/2015 04:44 PM, Peter Maydell wrote: >>> On 4 September 2015 at 20:53, Markus Armbruster <armbru@redhat.com> wrote: >>>> RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back >>>> to 10.6. >>>> >>>> Signed-off-by: Markus Armbruster <armbru@redhat.com> >>> >>> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> >>> >>> I wonder if we're ever going to need to add that Python 3 >>> support the error message alludes to :-) >> >> Which tree will this be going through? > > Random buildsystem stuff usually gets picked up by Paolo. I've queued it but I'm a bit busy, so I'm not going to send the next pull request until I've managed to test the record-replay stuff. Anyone can feel free to pick up this patch or others. Paolo
diff --git a/configure b/configure index 21c4089..bce1769 100755 --- a/configure +++ b/configure @@ -1157,18 +1157,14 @@ fi # Note that if the Python conditional here evaluates True we will exit # with status 1 which is a shell 'false' value. -if ! $python -c 'import sys; sys.exit(sys.version_info < (2,4) or sys.version_info >= (3,))'; then - error_exit "Cannot use '$python', Python 2.4 or later is required." \ +if ! $python -c 'import sys; sys.exit(sys.version_info < (2,6) or sys.version_info >= (3,))'; then + error_exit "Cannot use '$python', Python 2.6 or later is required." \ "Note that Python 3 or later is not yet supported." \ "Use --python=/path/to/python to specify a supported Python." fi -# The -B switch was added in Python 2.6. -# If it is supplied, compiled files are not written. -# Use it for Python versions which support it. -if $python -B -c 'import sys; sys.exit(0)' 2>/dev/null; then - python="$python -B" -fi +# Suppress writing compiled files +python="$python -B" case "$cpu" in ppc)
RHEL-6 and SLES-11 provide Python 2.6. It'll also work on OS X back to 10.6. Signed-off-by: Markus Armbruster <armbru@redhat.com> --- configure | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)