Le 15/03/2015 17:00, Bruce Dubbs a écrit :
> Pierre Labastie wrote:
>> Hi list,
>>
>> The latest version of mesa (10.5.1) needs the mako python module for its
>> build. It is a hard dependency (see
>> http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b37bea010a9c9333a813cc77d28629e1382c0be).
>>
>> As far as I understand, this module in turn needs the setuptools module for
>> its build.
>>
>> It seems that it is possible to automatically download setuptools during mako
>> build, but I understand that, for the book, all files are expected to be
>> downloaded before build (am I understanding correctly?).
>>
>> So two new modules seem to be needed in Python modules. May I proceed?
> 
> Sure.  This thing arises because upstream develops on a full system.  They
> don't really pay attention to the dependencies the way we do.  We just have to
> adjust as needed.
> 
>   -- Bruce
> 
> 

Well, python module installation: a new world!

The KBLFS sources give some hints, fortunately...

For the record, here is what I have found so far:

- "(sudo) python setup.py install" installs a ".egg" and a ".pth" files in
/usr/lib/pyhton2.7/site-packages. ".egg" files are zipped files containing
python ".py" (python text programs) and ".pyc" (python bytecode compiled
programs) files, while ".pth" is a file describing the various paths
associated to the modules, since object structure is parallel to paths in
python (not sure I express that correctly...).
- if you add --optimize=1, you get also ".pyo" files, which are bytecode
compiled and optimized files.
- if you want the equivalent of a DESTDIR install, run:
"python setup.py install --root=$DESTDIR --prefix=/usr"
Note that --prefix=/usr is needed here (the default is /usr/local),
while it is not needed when not using "--root". But when you do that, you get
an ".egg-info" directory adjacent to the ".py", ".pyc", ".pyo" files (in
/usr/lib/pyhton2.7/site-packages), instead of a zipped file containing them
all... I have not found a way to obtain a .egg file in DESTDIR...

Actually, it is hard to find an up-to-date Python packaging documentation on
internet. I guess it can be found on https://pypi.python.org/, but it is not
easy to find an answer to some precise points (like the egg and egg-info
problem above).

Oh, now, I see that ".egg" files can be also directories.

Well, enough for now. I'll be happy to learn more if somebody on the list can
teach...
Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to