[Distutils] Re: Mixing pure python and extension module and multi platform
Berthold Höllmann
hoel@gl-group.com
Wed Mar 19 06:16:38 2003
"M.-A. Lemburg" <mal@lemburg.com> writes:
> Berthold Höllmann wrote:
> > "M.-A. Lemburg" <mal@lemburg.com> writes:
> >>If you are using packages, that's the only way it works (you can't
> >>have two parallel package structures with the same base name in
> >>Python). If you are distributing the files as top-level files,
> >>then this looks like a bug.
> > So it is, I guess a bug. I build a small example:
>
> I don't think so...
>
> > setup (name = "pork.spam",
> > version = "0.0.0",
> > description = "just a test",
> > author = 'Berthold Höllmann',
> > author_email = "hoel@GL-Group.com",
> > ext_modules = [Extension('spam', ['spam.c'])],
> > package_dir = {'pork': '.'},
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> > py_modules = ['pork.pork'],
> > )
sorry, of course, but, I moved pork.py and __init__.py to the new
generated pork subdirectory, removed the "package_dir" line and
>python setup.py -n install
Adding parser accelerators ...
Done.
running install
running build
running build_py
copying pork/__init__.py -> build/lib.linux-i686-2.2/pork
not copying pork/pork.py (output up-to-date)
running build_ext
skipping 'spam' extension (up-to-date)
running install_lib
copying build/lib.linux-i686-2.2/pork/pork.py -> /usr/local/fitools/sandbox/linux/lib/python2.2/site-packages/pork
copying build/lib.linux-i686-2.2/spam.so -> /usr/local/fitools/sandbox/linux/lib/python2.2/site-packages
error: file '/usr/local/fitools/sandbox/linux/lib/python2.2/site-packages/pork/pork.py' does not exist
[16946 refs]
Do you accept this as an error?
Regards
Berthold
--
Dipl.-Ing. Berthold Höllmann __ Address:
hoel@GL-Group.com G / \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 32/35 P.O.Box 111606
fax : +49-40-36149-7320 \__/ D-20459 Hamburg D-20416 Hamburg
****************************************************
Beachten Sie: Wir moechten Sie informieren, dass die E-Mail-Adresse des Germanischen Lloyd sowie unsere Web-Adresse mit Wirkung vom 1. Maerz 2003 auf den Namen gl-group.com umgestellt wurde.
Dies bedeutet, dass die bisherige Adresse Kurzzeichen@germanlloyd.org durch die neue Adresse Kurzzeichen@gl-group.com ersetzt wird. Die Homepage des GL ist kuenftig ueber die Adresse 'http://www.gl-group.com' aufrufbar. Die bisher verwendeten Adressen bleiben für eine Uebergangsfrist erreichbar.
****************************************************
Please notice: We would like to inform you that the e-mail address of Germanischer Lloyd as well as our internet address had been changed to gl-group.com with effect from 1st March 2003.
This means that the previous address shortmark@germanlloyd.org will be replaced by shortmark@gl-group.com. From now on the GL homepage can be accessed at the address 'http://www.gl-group.com'. The old addresses remain valid for a transitional period.
****************************************************
This e-mail contains confidential information for the exclusive attention of the intended addressee. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail.
GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.