Re: [Tutor] Find a good linux distribution with python.

2009-05-26 Thread Norman Khine
Gentoo is python centric, although python3 is not yet in the main
portage tree, but can be setup using an overlay
http://overlays.gentoo.org/proj/python/

On Tue, May 26, 2009 at 6:36 AM, Dave Crouse  wrote:
> It's not a newbie distro by any means, but i am very fond of Arch Linux.
> It has 3 versions of python available. Currently,
>
> python24 2.4.6-1
> python 2.6.2-1
> python3 3.0.1-1
>
> are all very simple to install in Arch. I have 2.6 and 3.0 both installed.
>
> [cro...@veronica ~]$ python --version
> Python 2.6.2
> [cro...@veronica ~]$ python3 --version
> Python 3.0.1
> [cro...@veronica ~]$
>
> installing python3 is as simple as :  pacman -S python3
>
> Once configured and setup, Arch provides an awesome platform for python.
> I am a bit biased though :)   ymmv
>
>
>
>
>
>
>
>
> On Mon, May 25, 2009 at 11:22 AM, W W  wrote:
>> On Mon, May 25, 2009 at 3:57 AM, Michael Bernhard Arp Sørensen
>>  wrote:
>>>
>>> 
>>> I just wished that Python was upgraded in the distros. If I want to play
>>> with Python3, I will need to compile it my self and specify which Python
>>> interpretor to use in each Python file. But this is a small problem. 
>>
>> In Ubuntu Jaunty(?)- 8.11 I believe- you can apt-get the python3 package (or
>> whatever you use). I think there's also a python 2.6 package and the default
>> is python 2.5.
>>
>> I'm assuming you use terminal, and if so you can setup aliases in your
>> .bashrc to go into whatever "mode" you want. Just add these lines to your
>> .bashrc
>>
>> alias pymode3='alias python="python3"'
>> alias pymode1.6='alias python="python1.6"'
>>
>> I forget if/how to change ipython between versions of python though. You'd
>> just have to put similar aliases in your bash file.
>>
>> HTH,
>> Wayne
>>
>> ___
>> Tutor maillist  -  tu...@python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
> ___
> Tutor maillist  -  tu...@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-25 Thread Dave Crouse
It's not a newbie distro by any means, but i am very fond of Arch Linux.
It has 3 versions of python available. Currently,

python24 2.4.6-1
python 2.6.2-1
python3 3.0.1-1

are all very simple to install in Arch. I have 2.6 and 3.0 both installed.

[cro...@veronica ~]$ python --version
Python 2.6.2
[cro...@veronica ~]$ python3 --version
Python 3.0.1
[cro...@veronica ~]$

installing python3 is as simple as :  pacman -S python3

Once configured and setup, Arch provides an awesome platform for python.
I am a bit biased though :)   ymmv








On Mon, May 25, 2009 at 11:22 AM, W W  wrote:
> On Mon, May 25, 2009 at 3:57 AM, Michael Bernhard Arp Sørensen
>  wrote:
>>
>> 
>> I just wished that Python was upgraded in the distros. If I want to play
>> with Python3, I will need to compile it my self and specify which Python
>> interpretor to use in each Python file. But this is a small problem. 
>
> In Ubuntu Jaunty(?)- 8.11 I believe- you can apt-get the python3 package (or
> whatever you use). I think there's also a python 2.6 package and the default
> is python 2.5.
>
> I'm assuming you use terminal, and if so you can setup aliases in your
> .bashrc to go into whatever "mode" you want. Just add these lines to your
> .bashrc
>
> alias pymode3='alias python="python3"'
> alias pymode1.6='alias python="python1.6"'
>
> I forget if/how to change ipython between versions of python though. You'd
> just have to put similar aliases in your bash file.
>
> HTH,
> Wayne
>
> ___
> Tutor maillist  -  tu...@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-25 Thread W W
On Mon, May 25, 2009 at 3:57 AM, Michael Bernhard Arp Sørensen <
mich...@arpsorensen.dk> wrote:

> 
> I just wished that Python was upgraded in the distros. If I want to play
> with Python3, I will need to compile it my self and specify which Python
> interpretor to use in each Python file. But this is a small problem. 
>

In Ubuntu Jaunty(?)- 8.11 I believe- you can apt-get the python3 package (or
whatever you use). I think there's also a python 2.6 package and the default
is python 2.5.

I'm assuming you use terminal, and if so you can setup aliases in your
.bashrc to go into whatever "mode" you want. Just add these lines to your
.bashrc

alias pymode3='alias python="python3"'
alias pymode1.6='alias python="python1.6"'

I forget if/how to change ipython between versions of python though. You'd
just have to put similar aliases in your bash file.

HTH,
Wayne
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-25 Thread Michael Bernhard Arp Sørensen
Hi Lloyd.

I did not take offense about the comment on Ubuntu. It was an old joke and
it made me smile again. :-)

I've used Debian before, but I have moved to Ubuntu because Debian takes
forever to release a new version. Almost as long as Microsoft. I like Debian
based distro the most.

To all the others who was kind enough to contribute to this thread:

Your points are taken. I think I'll stick a "normal" vanilla Linux distro
and avoid any unnecessary setup. I particularly liked the idea of not
cluttering my local environment with too much special setup since I write
code for others than myself.

One of the more serious issues in the past was the use of Amara (an XML
parser). Amara is now a part of Debian and Ubuntu, which eliminates the need
for a special build of the module.

I just wished that Python was upgraded in the distros. If I want to play
with Python3, I will need to compile it my self and specify which Python
interpretor to use in each Python file. But this is a small problem.

I'm very fond of using emacs for many purposes besides coding in Python. It
keeps me productive when I don't have a "writers block". :-) To me a good
linux distro contains all the great modes for Emacs and the newest version
of Emacs and Python.

Thank you all very much.

Med venlig hilsen/Kind regards

Michael B. Arp Sørensen
Programmer / BOFH

"If you want to enter my network while I'm out, you can find my SSH-key
under my mouse mat" - Michael Bernhard Arp Sørensen



On Mon, May 25, 2009 at 10:05 AM, OkaMthembo  wrote:

> bhaaluu, your comments on Ubuntu are not only offensive, but display
> ignorance and arrogance all at the same time.
> Ubuntu is based on Debian, but provides a lower entry barrier to Linux for
> many.
>
> Not everybody wants to spend much time doing configurations. Many just want
> a system that works.
>
> Michael, to answer your question - Ubuntu is just fine!
>
> Regards,
> Lloyd
>
>
>
> On Sun, May 24, 2009 at 11:11 PM, bhaaluu  wrote:
>
>> On Sun, May 24, 2009 at 4:02 PM, Michael Bernhard Arp Sørensen
>>  wrote:
>> >
>> > What distro do you run?
>> >
>>
>> Debian GNU/Linux
>>
>> >
>> > Another point: There's so many modules on the Internet, that it's
>> difficult
>> > to get some sort of overview. That's why a distro is such a great idea
>> > because so many packages with python stuff is included. Could you get
>> any
>> > kind of overview over python modules/libs other than a repo in a distro?
>> >
>>
>> Like anything else that is huge, just tackle the parts of it that you
>> need.
>>
>> >
>> > I have concluded that there's no such thing as a perfect distro. Only
>> some
>> > distros come close to perfection. In that case I was wondering if I
>> should
>> > create my own python repo to set up a good working environment for
>> > development. That way I could use any distro. On the other hand, any
>> code I
>> > migth write would be difficult for others to use.
>> >
>> > Any ideas or comments?
>> >
>>
>> "Ubuntu" is an African word that means "I can't configure Debian."
>> 8^D
>> Knoppix, Ubuntu, and several other distributions are all based on
>> the fine work that the Debian GNU/Linux community does. Debian
>> GNU/Linux is completely Free, and is developed by volunteers from
>> around the world.
>>
>> >
>> > I use emacs with rope, ipython and python. I like those in newer
>> versions if
>> > not bleeding edge.
>> >
>>
>> If you're really serious about having the 'perfect' distro, you can start
>> with Debian GNU/Linux and make your own, the way you want it to be.
>> While it is not a trivial matter to re-master a Linux Live CD, it is much
>> easier than it used to be! You could pack it full of Python! It is this
>> reason that there are hundreds of Linux Live CD distributions. Each
>> person thinks that their distro is the best. This is one reason why
>> GNU/Linux is so fantastic!
>>
>> > Med venlig hilsen/Kind regards
>> >
>> > Michael B. Arp Sørensen
>> > Programmer / BOFH
>> > Denmark
>> >
>> > "If you want to enter my network while I'm out, you can find my SSH-key
>> > under my mouse mat" - Michael Bernhard Arp Sørensen
>> >
>>
>> Why don't you make a Python-centric Linux Live CD?
>> --
>> b h a a l u u at g m a i l dot c o m
>> Kid on Bus: What are you gonna do today, Napoleon?
>> Napoleon Dynamite: Whatever I feel like I wanna do. Gosh!
>> ___
>> Tutor maillist  -  Tutor@python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>
>
>
>
> --
> Lloyd Dube
>
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-25 Thread OkaMthembo
bhaaluu, your comments on Ubuntu are not only offensive, but display
ignorance and arrogance all at the same time.
Ubuntu is based on Debian, but provides a lower entry barrier to Linux for
many.

Not everybody wants to spend much time doing configurations. Many just want
a system that works.

Michael, to answer your question - Ubuntu is just fine!

Regards,
Lloyd



On Sun, May 24, 2009 at 11:11 PM, bhaaluu  wrote:

> On Sun, May 24, 2009 at 4:02 PM, Michael Bernhard Arp Sørensen
>  wrote:
> >
> > What distro do you run?
> >
>
> Debian GNU/Linux
>
> >
> > Another point: There's so many modules on the Internet, that it's
> difficult
> > to get some sort of overview. That's why a distro is such a great idea
> > because so many packages with python stuff is included. Could you get any
> > kind of overview over python modules/libs other than a repo in a distro?
> >
>
> Like anything else that is huge, just tackle the parts of it that you need.
>
> >
> > I have concluded that there's no such thing as a perfect distro. Only
> some
> > distros come close to perfection. In that case I was wondering if I
> should
> > create my own python repo to set up a good working environment for
> > development. That way I could use any distro. On the other hand, any code
> I
> > migth write would be difficult for others to use.
> >
> > Any ideas or comments?
> >
>
> "Ubuntu" is an African word that means "I can't configure Debian."
> 8^D
> Knoppix, Ubuntu, and several other distributions are all based on
> the fine work that the Debian GNU/Linux community does. Debian
> GNU/Linux is completely Free, and is developed by volunteers from
> around the world.
>
> >
> > I use emacs with rope, ipython and python. I like those in newer versions
> if
> > not bleeding edge.
> >
>
> If you're really serious about having the 'perfect' distro, you can start
> with Debian GNU/Linux and make your own, the way you want it to be.
> While it is not a trivial matter to re-master a Linux Live CD, it is much
> easier than it used to be! You could pack it full of Python! It is this
> reason that there are hundreds of Linux Live CD distributions. Each
> person thinks that their distro is the best. This is one reason why
> GNU/Linux is so fantastic!
>
> > Med venlig hilsen/Kind regards
> >
> > Michael B. Arp Sørensen
> > Programmer / BOFH
> > Denmark
> >
> > "If you want to enter my network while I'm out, you can find my SSH-key
> > under my mouse mat" - Michael Bernhard Arp Sørensen
> >
>
> Why don't you make a Python-centric Linux Live CD?
> --
> b h a a l u u at g m a i l dot c o m
> Kid on Bus: What are you gonna do today, Napoleon?
> Napoleon Dynamite: Whatever I feel like I wanna do. Gosh!
> ___
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>



-- 
Lloyd Dube
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-24 Thread Walker Hale IV
On Sun, May 24, 2009 at 4:44 PM, Alan Gauld  wrote:
> "Michael Bernhard Arp Sørensen"  wrote
> Most folks get by with the standard libraryb and a small number of
> specialist modules to meet their specific needs. If you need a new
> one install it, but loading lots of stuff just because its there is just a
> waste of disk space IMHO.
>
>> create my own python repo to set up a good working environment for
>> development. That way I could use any distro.
>
> By defaulyt Python keeps all its installed packages in the Python
> directory structure so, effectively, you do build up your own repo. But
> don't do it in advance just add to it as you need to.
>
>> On the other hand, any code I might write would be difficult
>> for others to use.
>
> If you stick to the a standard Python package tools it should be fine.
> Not just on Linux but on any other OS too.
>
>
> --
> Alan Gauld
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/

I agree with Alan. These days the trend seems to be in the opposite direction.

I'm seeing developers keeping a "clean" Python environment and then
installing additional packages into virtual environments. That keeps
conflicts to a minimum and solves the problem of uninstalling unwanted
packages.

http://pypi.python.org/pypi/virtualenv

Some developers even go so far as putting their Python environment
under version control using something like Bazaar, git, or Mercurial
(alphabetical order). This is in an effort to keep the contents of
their Python environment under control.

Once you have setuptools installed, it just too easy to type
"easy_install spam" and get that package installed into your
environment. The challenge is to control clutter in your environment.

http://pypi.python.org/pypi/setuptools

If you can keep your dependencies under control, then you can give
users a reasonable set of requirements. If necessary, you can bundle
things up for end users:

http://www.py2exe.org/
http://svn.pythonmac.org/py2app/py2app/trunk/doc/index.html
http://pypi.python.org/pypi/zc.buildout

On the other hand, I do believe that Python needs an expanded distro
for developers, but it would only contain a few extra things, such as
the items mentioned above.

-- 
Walker Hale 
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-24 Thread Alan Gauld


"Michael Bernhard Arp Sørensen"  wrote


I'm on an eternal quest to find the perfect linux distro


Don't wste your time. The distro doesn't make much difference beyond:

- The basic file system structure and if it sticks to (one of) the standard
then thats not a big issue

- The package manager - you may prefer apt-get or yast or rpm or whatever

- the installer, but you only use it once (sort of!)


I've used Slackware, Redhat, Mandrake/Mandiva, Suse, Debian(briefly!)
and a couple of lesser known ones. Once they were up and trunning I
didn't find much difference with any of them!


Therefore there's a lot of python stuff in the repository.


The beauty of Python is that because it is platform independant
it is also distro independant. Thus if you dowenloasd a python
package and install it it will work regardless of distro.

Another point: There's so many modules on the Internet, that it's 
difficult

to get some sort of overview.


Most folks get by with the standard libraryb and a small number of
specialist modules to meet their specific needs. If you need a new
one install it, but loading lots of stuff just because its there is just a
waste of disk space IMHO.


create my own python repo to set up a good working environment for
development. That way I could use any distro.


By defaulyt Python keeps all its installed packages in the Python
directory structure so, effectively, you do build up your own repo. But
don't do it in advance just add to it as you need to.


On the other hand, any code I might write would be difficult
for others to use.


If you stick to the a standard Python package tools it should be fine.
Not just on Linux but on any other OS too.


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/ 



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Find a good linux distribution with python.

2009-05-24 Thread bhaaluu
On Sun, May 24, 2009 at 4:02 PM, Michael Bernhard Arp Sørensen
 wrote:
>
> What distro do you run?
>

Debian GNU/Linux

>
> Another point: There's so many modules on the Internet, that it's difficult
> to get some sort of overview. That's why a distro is such a great idea
> because so many packages with python stuff is included. Could you get any
> kind of overview over python modules/libs other than a repo in a distro?
>

Like anything else that is huge, just tackle the parts of it that you need.

>
> I have concluded that there's no such thing as a perfect distro. Only some
> distros come close to perfection. In that case I was wondering if I should
> create my own python repo to set up a good working environment for
> development. That way I could use any distro. On the other hand, any code I
> migth write would be difficult for others to use.
>
> Any ideas or comments?
>

"Ubuntu" is an African word that means "I can't configure Debian."
8^D
Knoppix, Ubuntu, and several other distributions are all based on
the fine work that the Debian GNU/Linux community does. Debian
GNU/Linux is completely Free, and is developed by volunteers from
around the world.

>
> I use emacs with rope, ipython and python. I like those in newer versions if
> not bleeding edge.
>

If you're really serious about having the 'perfect' distro, you can start
with Debian GNU/Linux and make your own, the way you want it to be.
While it is not a trivial matter to re-master a Linux Live CD, it is much
easier than it used to be! You could pack it full of Python! It is this
reason that there are hundreds of Linux Live CD distributions. Each
person thinks that their distro is the best. This is one reason why
GNU/Linux is so fantastic!

> Med venlig hilsen/Kind regards
>
> Michael B. Arp Sørensen
> Programmer / BOFH
> Denmark
>
> "If you want to enter my network while I'm out, you can find my SSH-key
> under my mouse mat" - Michael Bernhard Arp Sørensen
>

Why don't you make a Python-centric Linux Live CD?
-- 
b h a a l u u at g m a i l dot c o m
Kid on Bus: What are you gonna do today, Napoleon?
Napoleon Dynamite: Whatever I feel like I wanna do. Gosh!
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Find a good linux distribution with python.

2009-05-24 Thread Michael Bernhard Arp Sørensen
Hi there.

I'm on an eternal quest to find the perfect linux distro to base my work on.
I'm currently running Ubuntu because its told that the Ubuntu creator Mark
Shuttleworth is a python hacker. Therefore there's a lot of python stuff in
the repository.

What distro do you run?

Another point: There's so many modules on the Internet, that it's difficult
to get some sort of overview. That's why a distro is such a great idea
because so many packages with python stuff is included. Could you get any
kind of overview over python modules/libs other than a repo in a distro?

I have concluded that there's no such thing as a perfect distro. Only some
distros come close to perfection. In that case I was wondering if I should
create my own python repo to set up a good working environment for
development. That way I could use any distro. On the other hand, any code I
migth write would be difficult for others to use.

Any ideas or comments?

I use emacs with rope, ipython and python. I like those in newer versions if
not bleeding edge.

Med venlig hilsen/Kind regards

Michael B. Arp Sørensen
Programmer / BOFH
Denmark

"If you want to enter my network while I'm out, you can find my SSH-key
under my mouse mat" - Michael Bernhard Arp Sørensen
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor