Python 2.1.1 ... stupid error in import.c
Tim Roberts
timr at probo.com
Tue Aug 28 02:27:44 EDT 2001
Armin Steinhoff <Armin_member at newsguy.com> wrote:
>In article <uvugotgfhdhf7f0fenfeh27bqakbk9127r at 4ax.com>, Tim says...
>>
>>When you install Python in a Unix-like system, you specify a top-level
>>"prefix". This is usually either /usr or /usr/local. The Python binary is
>>then installed in $prefix/bin. The modules are installed in
>>$prefix/lib/python-2.1 (that is, only the first two digits of the version
>>are used to make the library path).
>
>Sorry ... you missing the point. I didn't install the binaries of Python !!
OK, I think I see what you're saying. Let me repeat something you
originally wrote:
>>>After some hacking with DDD .. I found out that the pathes used by the search
>>>algorithm of import.c has nothing to do with the directory structure of the
>>>UNIX distribution of Python 2.1.1 =:-/
So, are you saying here that you would like to execute the interpreter out
of the build directory, using the source directory structure? Later, you
also said this:
>>>I have installed Python in the root directory ...
I interpreted this to mean you INSTALLED Python in the root directory. But
does this really mean you UNTARRED Python in the root directory?
>>>and set PYTHONHOME/PYTHONPATH to /Python-2.1.1 -> the path to the
>>>library modules is then
>>>
>>> -> /Python-2.1.1/Lib
>>
>>What you describe is the way a Windows installation works.
>
>Nonsens ...
Not at all. That IS the way Python is installed on Windows: the whole
product installs under a single top-level directory, with the modules in a
Lib directory underneath. This is, however, irrelevant to your original
question.
>You are missing the point ... the search algorithm doesn't meet the
>directory structure of the source archive of Python-2.1.1!
Right. It's not SUPPOSED to. It's supposed to match the directory
structure of an INSTALLED version of Python-2.1.1, meaning one that has had
a "make" and a "make install".
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list