[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Frustrated trying to build beecrypt & rpm on a Debian system whereI'm not root
- From: Mike Meyer <mwm-keyword-rpm 43b295 mired org>
- To: rpm-list redhat com
- Subject: Re: Frustrated trying to build beecrypt & rpm on a Debian system whereI'm not root
- Date: Sun, 25 Nov 2007 12:41:21 -0500
On Sun, 25 Nov 2007 06:31:58 -0500 "Johri, Mayank (GTI)" <mayank_johri ml com> wrote:
> Paul,
>
> It should be
> from os.path import curdir,... Instead of from os.path import (curdir,
The "(curdir, ..." is from python 2.5, and causes the next line to be
a continuation line (standard python parsing: an open paren always
does that). That is, it probably said something like:
from os.path import (curdir, pardir, sep, pathsep, defpath, extsep,
altsep, join)
and you'll want to change it to
from os.path import curdir, pardir, sep, pathsep, defpath, extsep, altsep, join
or
from os.path import curdir, pardir, sep, pathsep, defpath, extsep, \
altsep, join
Of course, that this is in their sources means they haven't tested
against 2.4, so you may encounter more such problems. In this case,
the "What's new in 2.5" (http://docs.python.org/whatsnew/whatsnew25.html)
is probably worth reading.
<mike
> Thanks and Regards,
> Mayank Johri
> Merrill Lynch & Co.
> Ph: 212.647.3076
>
>
>
> -----Original Message-----
> From: rpm-list-bounces redhat com [mailto:rpm-list-bounces redhat com]
> On Behalf Of Paul Johnson
> Sent: Saturday, November 24, 2007 1:23 PM
> To: RPM Package Manager
> Subject: Frustrated trying to build beecrypt & rpm on a Debian system
> whereI'm not root
>
>
> I have a user account on Dreamhost.com. I've been making RPMs for
> Scientific Linux and posting them here
>
> http://pj.freefaculty.org/ScientificLinux/5
>
> A guy says "create a repository there" and I've been fighting with the
> problem of building, installing, and using Python modules in a place
> that is NOT /usr/lib/python2.4.
>
> I'm using the configure option --prefix=/home/pauljohn32/packages when
> I build everything. TO make RPM's configure find the Beecrypt I
> have to force in a CFLAG -I/home/pauljohn32/packages/include
>
> and I set the environment variable
>
> PYTHONPATH=/home/pauljohn32/packages/lib/python2.4:/usr/lib/python2.4
>
> One problem is that the Beecrypt source from the Fedora 8 distribution
> is hardcoded to put the python modules in that system place, and it
> ignores the install prefix. I can hand edit the Makefile so they go
> into /home/pauljohn32/packages/lib/python2.4. I've built rpm several
> times and installed it, thinking I had tricked it into installing
> modules into my user home directory, only to have runtime failures in
> the createrepo scripts. Those are hardcoded to go into /usr/, but i
> can revise that. Still, I get crashes because python components are
> not found.
>
>
> $ createrepo /home/pauljohn32/freefaculty.org/ScientificLinux/5/i386/
> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
> File "/home/pauljohn32/packages/share/createrepo/genpkgmetadata.py",
> line 23, in ?
> import os
> File "/usr/lib/python2.4/os.py", line 133
> from os.path import (curdir, pardir, sep, pathsep, defpath, extsep,
> altsep,
> ^
> SyntaxError: invalid syntax
>
>
> I'm a Perl programmer, and I am sorry to say I find Python docs not as
> helpful for non-root users! Please throw me a bone (for the holiday
> spirit).
>
> PJ
> --
> Paul E. Johnson
> Professor, Political Science
> 1541 Lilac Lane, Room 504
> University of Kansas
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list redhat com
> https://www.redhat.com/mailman/listinfo/rpm-list
> --------------------------------------------------------
>
> This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing.
> --------------------------------------------------------
>
> _______________________________________________
> Rpm-list mailing list
> Rpm-list redhat com
> https://www.redhat.com/mailman/listinfo/rpm-list
--
Mike Meyer <mwm mired org> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]