[Distutils] Newbie questions about setuptools

Edward Ream edreamleo at charter.net
Wed Jun 20 16:43:10 CEST 2007

>> http://sourceforge.net/project/showfiles.php?group_id=3458 leo
> ...you can use the above URL as your "Download URL"

Success, or close to it.  Here is the present status.

1.  setup.py register works.

2. setup.py sdist upload --show-response fails as follows:

 [big snip: creating files]
removing 'leo-4.4.3preview10' (and everything under it)
running upload
Submitting dist\leo-4.4.3preview10.zip to http://www.python.org/pypi
Upload failed (400): Bad Request
Error processing form
invalid distribution file

Not a big deal.  Any idea what might be happening?  (see the P.S. for the 
call to setup.py)

3. After uploading 'leo-4.4.3preview10.zip to SourceForge,
easy_install leo -v works (I think), but I was surprised that easy_install 
builds an egg:

[big snip: copying, compiling and building the egg]
Installed c:\python25\lib\site-packages\leo-4.4.3preview10-py2.5.egg
Processing dependencies for leo
Finished processing dependencies for leo

I'm also a surprised that this new egg did not become the default version of 

C:\Documents and Settings\HP_Administrator>python
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on 
Type "help", "copyright", "credits" or "license" for more information.
>>> import leo
>>> leo
<module 'leo' from 'c:\prog\tigris-cvs\leo\src\leo.py'>

My sitecustomize.py file is:

import sys

Surely this is a nit, but it will probably confuse others besides myself.

Anyway, it appears that the download url you suggested is a big success. 
Hurray!  Thanks for your help.


P.S.  Here is the present call to setup.py:

setuptools.setup (
    version='4.4.3preview10', # No spaces!
        # pre-release tags: 4.4.3b1 or 4.4.3rc1 or 4.4.3preview1
        # Do not use post-release-tags: 4.4.3-whatever.
        # final release: 4.4.3final or just 4.4.3.
    author='Edward K. Ream',
    author_email='edreamleo at charter.net',

    # py_modules=[], # The manifest specifies everything.
    packages = setuptools.find_packages(),
    include_package_data = True, # Required, e.g. for Pmw.def
    exclude_package_data = { '': ['*.pyc','*.pyo']},
    zip_safe=False, # Never run Leo from a zip file.
    install_requires=[], #'python>=2.2.1',],
    description = 'Leo: Literate Editor with Outlines',
    license='Python', # licence [sic] changed to license in Python 2.3
    long_description = long_description,
    keywords = 'outline, outliner, ide, editor, literate programming',

Edward K. Ream   email:  edreamleo at charter.net
Leo: http://webpages.charter.net/edreamleo/front.html

More information about the Distutils-SIG mailing list