[issue9] [PATCH] native_libs.txt created in .egg-info/; should only be in EGG-INFO/

New submission from Philip Jenvey <pjenvey@underboss.org>: native_libs.txt shouldn't be created in projects' .egg-info/ dirs. When one is created there, it will be listed in SOURCES.txt. Depending on the environment the egg is built on, native lib extensions may be disabled at egg build time (such as due to the lack of a C compiler; in particular, simplejson and Genshi do this) -- which can cause native_libs.txt to be empty. When its empty its pruned from the .egg-info dir. Then when the entries in SOURCES.txt are copied to the final egg directory, setuptools breaks when attempting to copy a non existent native_libs.txt from the .egg-info/ dir. The solution is to only generate native_libs.txt in the finished egg's EGG-INFO directory. Attached is a patch to only generate native_libs.txt in the final EGG-INFO/ dir and have the egg_info command correct the problem by always pruning native_libs.txt from the .egg-info/ dir. It also disables the failing tests on Jython (which are for experimental functionality that isn't actually used anyway) For the orig. discussion see: http://mail.python.org/pipermail/distutils- sig/2008-February/008805.html ---------- messages: 11 nosy: pjenvey priority: bug status: unread title: [PATCH] native_libs.txt created in .egg-info/; should only be in EGG-INFO/ _______________________________________________ Setuptools tracker <setuptools@bugs.python.org> <http://bugs.python.org/setuptools/issue9> _______________________________________________
participants (1)
-
Philip Jenvey