[Distutils] setuptools unittests on Mac OS X

Phillip J. Eby pje at telecommunity.com
Thu Sep 29 18:41:31 CEST 2005

At 09:53 AM 9/29/2005 +1000, Ashley Walsh wrote:
>Just a small fix to make the
>setuptools.tests.test_resources.DistroTests.testCollection pass on
>OSX (and other non-win32 platforms):
>diff -r1.25 test_resources.py
><         ad = Environment([], python=None)
>  >         ad = Environment([], platform='win32', python=None)
>Without this the Environment uses the get_platform() result, and
>Distribution.from_filename("FooPkg-1.4-py2.4-win32.egg") is not added
>to the environment.  (Maybe some can_add() tests would help?)

platform=None will also work.  I'll fix in the next release.

More information about the Distutils-SIG mailing list