[py-dev] Moving py-lib to setuptools

Patrick K. O'Brien pobrien at orbtech.com
Mon Nov 21 22:01:02 CET 2005

Ian Bicking wrote:
> Does anyone have an opinion on setup.py and how py-lib is packaged?  It
> seems like it was put in place some time ago, and py hasn't really been
> formally released since then.
> Anyway, I think a lot of the hackish parts are dealt with by setuptools.
>  setuptools.find_packages() fills out the packages, and its backport of
> package_data deals with non-Python files, and paste.util.finddata can be
> copied in to deal with enumerating the package data.  setuptools has
> some possibly useful script generation capability, but that doesn't need
> to be used.  Maybe it should be, though; it creates a .exe file on
> Windows for each script.  I don't know know it would interact with the
> "py.test" name; I doubt that's been considered on Windows, and probably
> setuptools should remove dots from scripts on Windows.

I just renamed a setuptools-generated script and exe to contain a dot in
the name and it worked fine on Windows XP.  Just FYI.

Patrick K. O'Brien
Orbtech       http://www.orbtech.com
Schevo        http://www.schevo.org

More information about the Pytest-dev mailing list