[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



Paul,

It should be 
from os.path import curdir,... Instead of from os.path import (curdir,

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.
--------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]