Kozyarchuk
Kozyarchuk

Reputation: 21867

python setup.py develop not updating easy_install.pth

According to setuptools documentation, setup.py develop is supposed to create the egg-link file and update easy_install.pth when installing into site-packages folder. However, in my case it's only creating the egg-link file. How does setuptools decide if it needs to update easy_install.pth?

Some more info: It works when I have setuptools 0.6c7 installed as a folder under site-packages. But when I use setuptools 0.6c9 installed as a zipped egg, it does not work.

Upvotes: 6

Views: 3512

Answers (2)

joeforker
joeforker

Reputation: 41787

Reinstall setuptools with the command easy_install --always-unzip --upgrade setuptools. If that fixes it then the zipping was the problem.

Upvotes: 4

Bartosz Radaczyński
Bartosz Radaczyński

Reputation: 18564

I'd try to debug it with pdb. The issue is most likely with the easy install's method check_site_dir, which seeks for easy-install.pth.

Upvotes: 0

Related Questions