python 3

Asked by Frank P Esposito on 2013-05-16

I have python 3.x on my computer -- do I have to remove it and install 2.x to get Bazaar to
work?

Will there be a python3 version of bazaar

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
2013-05-16
Last reply:
2013-11-24
John A Meinel (jameinel) said : #1

Almost always you can have both python 2 and 3 installed at the same time.
Just install python 2 in the same way you installed 3.
There might be a python3 port in the future, but right now it is a lot of
work to do the port, but not much to gain. 2.7 will be supported for a long
time, and bzr will need to continue to support it for a while.

John
=:->
On May 16, 2013 11:06 PM, "Frank P Esposito" <
<email address hidden>> wrote:

> New question #229048 on Bazaar:
> https://answers.launchpad.net/bzr/+question/229048
>
> I have python 3.x on my computer -- do I have to remove it and install
> 2.x to get Bazaar to
> work?
>
> Will there be a python3 version of bazaar
>
> Thanks
>
> --
> You received this question notification because you are an answer
> contact for Bazaar.
>

Richard Gomes (frgomes) said : #2

Imagine you are coding in Python3 and obviously using Bazaar.

Now imagine you would like to push sources onto PyPI. This is easy:

    $ python3 setup.py sdist --formats=zip upload

Well... it should be easy like this. Unfortunately, this DOES NOT WORK WITH BAZAAR :(

This is where the gain is: adoption of Bazaar and Launchpad.net platform.

The proposed way to circumvent the difficulty, i.e: use Python2 for deployment onto PyPI, is not acceptable because this would force me to guarantee backward compatibility with Python2. The point is: there are improvements in Python3 syntax and there are improvements in the development process which would not be feasible if you have to guarantee that it compiles with Python2 too.

There's another way to circumvent is: use manifests instead.
I simply don't like this solution. Why? Because the SCM is there to do that for us.

More information:

https://bugs.launchpad.net/setuptoolsbzr/+bug/887518
This is an easy fix: one line of code.

https://bugs.launchpad.net/setuptoolsbzr/+bug/1254288
This is another easy fix: simply download the latest ez_setup.py

Thanks

Vincent Ladeuil (vila) said : #3

I think this question should be discussed on the mailing list where you'll reach a wider audience and get a better feeling of who may be interested to help.

It *is* an important topic for which the only long term solution for newer ubuntu versions will require that python-2.7 is still in main if bazaar want to remain in main instead of universe.

If you're interested in driving this discussion forward, then <email address hidden> and <email address hidden> sound like the most appropriate places.

Richard Gomes (frgomes) said : #4

Hello Vincent,

Thanks a lot for your feedback.

My interest is restricted to bugs
   https://bugs.launchpad.net/setuptoolsbzr/+bug/887518
   https://bugs.launchpad.net/setuptoolsbzr/+bug/1254288
which directly affect my workflow.

As detailed in https://bugs.launchpad.net/setuptoolsbzr/+bug/1254288, there's chance that "bzr" from the operating system could be used with Python3. This would alleviate the need of porting bzr to Python3.

Thanks a lot,

-- Richard

Can you help with this problem?

Provide an answer of your own, or ask Frank P Esposito for more information if necessary.

To post a message you must log in.