David Michael writes:
> This allows building with "./configure --python=python3", where
> the python3 program is at least version 3.6. It preserves
> compatibility with Python 2. The changes include:
>
> - Avoiding "print" usage
> - Using bytes with files opened in binary mode
> - Switchi
On Mon, Aug 21, 2017 at 04:29:44PM +0200, Markus Armbruster wrote:
> What is our Python 2 -> 3 migration strategy?
>
> Don't support Python 3 until a flag day, then flip and don't support
> Python 2?
Add support for Python 3 so that both Python 2.6+ and Python 3 are
supported.
When Python 2 is E
On Sat, Aug 19, 2017 at 10:58:44PM -0700, David Michael wrote:
> This allows building with "./configure --python=python3", where
> the python3 program is at least version 3.6. It preserves
> compatibility with Python 2. The changes include:
>
> - Avoiding "print" usage
> - Using bytes with f
Stefan Hajnoczi writes:
> On Mon, Aug 21, 2017 at 04:29:44PM +0200, Markus Armbruster wrote:
>> What is our Python 2 -> 3 migration strategy?
>>
>> Don't support Python 3 until a flag day, then flip and don't support
>> Python 2?
>
> Add support for Python 3 so that both Python 2.6+ and Python 3
On 31 August 2017 at 07:35, Markus Armbruster wrote:
> So, first we'll invest in work-arounds to make both 2 and 3 work. Once
> 2 is gone, we can invest some more to clean them up. Which probably
> won't happen, so we'll continue to carry work-arounds that no longer
> make sense.
>
> I maintain
On Thu, Aug 31, 2017 at 11:27:15AM +0100, Peter Maydell wrote:
> On 31 August 2017 at 07:35, Markus Armbruster wrote:
> > So, first we'll invest in work-arounds to make both 2 and 3 work. Once
> > 2 is gone, we can invest some more to clean them up. Which probably
> > won't happen, so we'll cont
On Thu, Aug 31, 2017 at 11:55:18AM +0100, Peter Maydell wrote:
> On 31 August 2017 at 11:47, Daniel P. Berrange wrote:
> > If we can update to python 2.7 as our minimum, then supporting py2
> > and py3 gets simpler, avoiding some of the nastier hacks, even
> > without that though it isn't too hard
On 31 August 2017 at 11:47, Daniel P. Berrange wrote:
> If we can update to python 2.7 as our minimum, then supporting py2
> and py3 gets simpler, avoiding some of the nastier hacks, even
> without that though it isn't too hard.
Unfortunately RHEL6 is what's holding us to retaining 2.6
support, a
"Daniel P. Berrange" writes:
> On Thu, Aug 31, 2017 at 11:55:18AM +0100, Peter Maydell wrote:
>> On 31 August 2017 at 11:47, Daniel P. Berrange wrote:
>> > If we can update to python 2.7 as our minimum, then supporting py2
>> > and py3 gets simpler, avoiding some of the nastier hacks, even
>> >
On 31 August 2017 at 12:02, Daniel P. Berrange wrote:
> On Thu, Aug 31, 2017 at 11:55:18AM +0100, Peter Maydell wrote:
>> On 31 August 2017 at 11:47, Daniel P. Berrange wrote:
>> > If we can update to python 2.7 as our minimum, then supporting py2
>> > and py3 gets simpler, avoiding some of the n
Peter Maydell writes:
> On 31 August 2017 at 07:35, Markus Armbruster wrote:
>> So, first we'll invest in work-arounds to make both 2 and 3 work. Once
>> 2 is gone, we can invest some more to clean them up. Which probably
>> won't happen, so we'll continue to carry work-arounds that no longer
On Thu, Aug 31, 2017 at 02:58:24PM +0200, Markus Armbruster wrote:
> Peter Maydell writes:
>
> > On 31 August 2017 at 07:35, Markus Armbruster wrote:
> >> So, first we'll invest in work-arounds to make both 2 and 3 work. Once
> >> 2 is gone, we can invest some more to clean them up. Which prob
On 31 August 2017 at 14:14, Daniel P. Berrange wrote:
> NB, some distros have already changed /usr/bin/python to point to py3
> so all the files with #!/usr/bin/python in QEMU are already broken on
> those distros.
This is a bug in those distros and they should fix it. Python 3
is not Python 2 an
On Thu, Aug 31, 2017 at 02:44:58PM +0200, Markus Armbruster wrote:
> "Daniel P. Berrange" writes:
>
> > On Thu, Aug 31, 2017 at 11:55:18AM +0100, Peter Maydell wrote:
> >> On 31 August 2017 at 11:47, Daniel P. Berrange wrote:
> >> > If we can update to python 2.7 as our minimum, then supporting
On Thu, Aug 31, 2017 at 02:19:05PM +0100, Peter Maydell wrote:
> On 31 August 2017 at 14:14, Daniel P. Berrange wrote:
> > NB, some distros have already changed /usr/bin/python to point to py3
> > so all the files with #!/usr/bin/python in QEMU are already broken on
> > those distros.
>
> This is
On 31 August 2017 at 13:58, Markus Armbruster wrote:
> Peter Maydell writes:
>
>> On 31 August 2017 at 07:35, Markus Armbruster wrote:
>>> So, first we'll invest in work-arounds to make both 2 and 3 work. Once
>>> 2 is gone, we can invest some more to clean them up. Which probably
>>> won't ha
On 31 August 2017 at 14:25, Daniel P. Berrange wrote:
> On Thu, Aug 31, 2017 at 02:19:05PM +0100, Peter Maydell wrote:
>> On 31 August 2017 at 14:14, Daniel P. Berrange wrote:
>> > NB, some distros have already changed /usr/bin/python to point to py3
>> > so all the files with #!/usr/bin/python i
On 2017-08-31 15:14, Daniel P. Berrange wrote:
[...]
> NB, some distros have already changed /usr/bin/python to point to py3
> so all the files with #!/usr/bin/python in QEMU are already broken on
> those distros.
For what it's worth, I (at least used to) build qemu regularly on Arch
Linux and t
On Sat, Aug 19, 2017 at 10:58:44PM -0700, David Michael wrote:
> This allows building with "./configure --python=python3", where
> the python3 program is at least version 3.6. It preserves
> compatibility with Python 2. The changes include:
>
> - Avoiding "print" usage
> - Using bytes with f
19 matches
Mail list logo