Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 569
Kozyarchuk Avatar asked Jan 07 '09 16:01

Kozyarchuk


People also ask

How do I upgrade setup py?

Installing Setuptools on WindowsStep 1: Install the latest or current version of Python3 in Windows. Step 2: Now check if pip and python are correctly installed in your system using the following commands. Step 3: Upgrade pip to the latest version to avoid errors during installation.

Is setup py deprecated?

With the latest version of setuptools, the python setup.py install command is being deprecated (see https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for more info). It is suggested that you can just pip install . to install a package from source, but this does not compile any Cython code.


1 Answers

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

like image 180
joeforker Avatar answered Oct 23 '22 19:10

joeforker