[Tutor] How does python find the modules I install ???

Andy Dustman andy@dustman.net
Thu, 16 Aug 2001 18:00:04 -0400 (EDT)

I only just came in on this thread, but if you get the MySQL-python
sources, enter it's root directory, and run:

python2 setup.py bdist_rpm --python=/usr/bin/python2

you will get nice RPMS for python2 (adjust paths).

Red Hat's use of 1.5.2 with 7.1 is due to two things, as I understand:

1) 2.0 and 2.1 had a license declared by the FSF to be conflicting with
the GPL.  (2.0.1 and 2.1.1 do not have this problem, I expect to see 2.1.1
in Red Hat 7.2.)

2) 2.0 probably broke some of their python libraries (the Red Hat Network
stuff is all python, as is the anaconda installer, and some other stuff).

On Thu, 16 Aug 2001, Tesla Coil wrote:

> On 16 August 2001, Simon Vandemoortele wrote:
> > Thx, I think that will solve my problem. Two remarks:
> > 1 - Wouldn't it be a lot easier if python kept it's
> > path in a file that can be altered easily ???
> Let's consider the immediate situation:  MySQL-python
> is 2.0 compatible.  You are 2.0 compatible.  That's the
> Python of it, as far as that's concerned, you shouldn't
> *need* to alter your path.  The problem is the rpm build.
> More essentially, the problem is that Red Hat 7.1 remains
> system dependent on 1.5.2 at the expense of their users'
> ability to do an easy upgrade of the interpreter, and the
> MySQL-python rpm is built to accommodate that anachronism.
> This would be a Nice Gesture Maybe if the net result were
> not to turn the main advantage of rpm upside down.  This
> rpm is provided to make it easy *not* to upgrade, with no
> such reward for being more up to speed and running SuSE.
> > 2 - Regarding your move solution: maybe I can avoid
> > the rpm -e problem by putting a symlink instead of
> > moving the files ???
> On reflection, I'd sooner take a crash course and build
> a proper rpm.  Hmm...

Andy Dustman         PGP: 0xC72F3F1D
    @       .net     http://dustman.net/andy
I'll give spammers one bite of the apple, but they'll
have to guess which bite has the razor blade in it.