[tahoe-dev] Build problems: using installed packages, and install failure

Zooko Wilcox-O'Hearn zooko at zooko.com
Fri Jan 29 19:50:53 UTC 2010


On Friday, 2010-01-29, at 11:21 , Jack Lloyd wrote:

> pkg_resources.DistributionNotFound: Twisted

Hm, pkg_resources (and the Tahoe-LAFS build tool) look for the  
presence of a file that ends with ".egg-info" in order to tell if  
Twisted is installed.  I see from this script that such a file is  
created on Gentoo:

http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/twisted/ 
twisted-9.0.0-r1.ebuild?view=markup

	create_twisted_egg-info() {
		touch "${D%/}${EPREFIX}/$(python_get_sitedir)/Twisted-${PV}-py$ 
{PYTHON_ABI}.egg-info"
	}
	python_execute_function create_twisted_egg-info

Is it that your $(python_get_sitedir) is not on your PYTHONPATH or  
something?

You could use the following command-line to see where it will look  
for such files: python -c 'import sys;print sys.path'

Regards,

Zooko



More information about the tahoe-dev mailing list