[Distutils] Building Python Eggs

Amit k. Saha amitsaha.in at gmail.com
Wed Jan 14 11:07:11 CET 2009


On Wed, Jan 14, 2009 at 3:34 PM, Lutz Paelike <lutz_p at gmx.net> wrote:
> Hey Amit,
>
> a __init__.py file needs to be contained in a folder to make the folder a
> package.

I had missed the 'folder' thingy..


> Check out the python documentation for more information.
>
>
> And you should move your setup file on the same level as the top-level
> package
> The reason why find_packages() does'nt find your mainpackage is because it
> is
> searching for packages on the same level or below the setup.py.
>
>
> You have to change your directory layout to this:
>
> ###################
> setup.py
>
> mainpackackage
>   demo1.py
>   __init.py__
>
>   subpackage1
>       __init.py/__
> ####################
>

Done. Thanks a lot Lutz !

-Amit

> Cheers,
>
> Lutz
>
>
>
> Am 14.01.2009 um 10:37 schrieb Amit k. Saha:
>
>> Hello Andreas,
>>
>> On Wed, Jan 14, 2009 at 2:53 PM, Andreas Jung <lists at zopyx.com> wrote:
>>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> On 14.01.2009 10:20 Uhr, Amit k. Saha wrote:
>>>>
>>>> Hi all,
>>>>
>>>> I am just learning the basics of building Python eggs using
>>>> 'setuptools'. What I have is the following code structure in a
>>>> top-down fashion:
>>>>
>>>>
>>>> - demo1.py
>>>> - __init.py__
>>>> - setup.py
>>>> -subpackage1
>>>> --__init.py/__
>>>>
>>>>
>>>> When I execute 'python setup.py bdist_egg' from the top-level
>>>> directory which has the 'setup.py' file:
>>>
>>> Using 'sdist' is usually good-enough unless you are working on binary
>>> distributions. 'sdist' usually includes everything - especially stuff
>>> under revision control (at least when using SVN).
>>
>> Doesn't help my cause. The result is the same.
>>
>> PS: None of my sources is under version control.
>>
>> -Amit
>>
>>
>>>
>>> - -aj
>>> -----BEGIN PGP SIGNATURE-----
>>> Version: GnuPG v1.4.9 (Darwin)
>>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>>
>>> iEYEARECAAYFAkltrv4ACgkQCJIWIbr9KYymiQCfbXOaJKOKGnk8pCOouPAxt0Pi
>>> RVUAoJyHMsSgdYKUp455EgdhPFmt4mpA
>>> =tRaw
>>> -----END PGP SIGNATURE-----
>>>
>>
>>
>>
>> --
>> Amit Kumar Saha
>> http://amitksaha.blogspot.com
>> http://amitsaha.in.googlepages.com/
>> *Bangalore Open Java Users Group*:http:www.bojug.in
>> _______________________________________________
>> Distutils-SIG maillist  -  Distutils-SIG at python.org
>> http://mail.python.org/mailman/listinfo/distutils-sig
>>
>
>



-- 
Amit Kumar Saha
http://amitksaha.blogspot.com
http://amitsaha.in.googlepages.com/
*Bangalore Open Java Users Group*:http:www.bojug.in


More information about the Distutils-SIG mailing list