no setup.py in unzipped Distutils

Thomas Heller theller at python.net
Wed Mar 19 10:46:35 EST 2003


Donnal Walter <donnal at donnal.net> writes:

> The package I wish to distribute has the following structure:
> 
> Mindwrapper (directory)
>    __init__.py
>    api.py
>    setup.py
>    README.txt
>    abstraction (directory)
>      __init__.py
>      (8 modules)
>    presentation (directory)
>      __init__.py
>      (10 modules)
>    samples (directory)
>      __init__.py
>      pkinetics (directory)
>        __init__.py
>        (5 modules)
> 
> My setup.py script looks like this:
> 
> from distutils.core import setup
> 
> setup(name="Mindwrapper",
>        version="0.1.01",
>        description="Custom clinical application development framework",
>        author="Donnal Walter",
>        author_email="donnal at donnal.net",
>        licence="BSD",
>        url="http://mindwrapper.org",
>        package_dir={'Mindwrapper': '.'},
>        packages=['Mindwrapper',
>                  'Mindwrapper.abstraction',
>                  'Mindwrapper.presentation',
>                  'Mindwrapper.samples',
>                  'Mindwrapper.samples.pkinetics'])
> 
> This appears to work fine *except* that when I unzip the resulting
> archive file, there is no setup.py script file, so how does the end
> user run "python setup.py install" from the Mindwrapper-0.1.01
> directory? Thanks.

Are you using Windows? There's a difference whether you run
  'setup.py sdist'
or
  'c:\python22\python setup.py sdist'

I don't know if this is also the case on non-Windows systems.

Thomas




More information about the Python-list mailing list