[PEAK] setuptools dependencies installed from os packages

alexander smishlajev alex at ank-sia.com
Mon Dec 19 12:11:03 EST 2005


hello!

it would be very nice if setuptools could find required modules 
installed with os package management system (binary packages on windows, 
redhat and debian, ports on *bsd, ebuilds on gentoo...)

perhaps there could be a standard way for setuptools-aware package to 
declare it's installed version?

the long story: i am trying to run SQLObject tests.  SQLObject test 
system verifies dependency requirements.  one of the requirements is 
"FormEncode>=0.2.2".  i have FormEncode-0.4 installed from windows 
installer.  but SQLObject tests fail with error 
"pkg_resources.DistributionNotFound: FormEncode>=0.2.2".

now i have two options: remove installed FormEncode and reinstall it 
from egg, or hack SQLObject.egg-info and remove requirement for 
FormEncode.  i don't like the first option because setuptools don't 
provide a way (other than manual file removal) to uninstall obsolete 
packages, and i don't like the second option because it smells very bad.

... any thoughts?

merry christmas,
alex.




More information about the PEAK mailing list