Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Determining version of easy_install/setuptools

I'm trying to install couchapp, which uses easy_install - and is quite explicit in stating a particular version of easy_install/setuptools is needed: 0.6c6. I seem to have easy_install already on my Mac, but there's no command-line arguments to check the version. Instead of just installing a new version over the top, I'd like to see whether it's necessary first.

So: Any pointers on how I can see what version of setuptools/easy_install I have installed on my machine?

I'm not a Python developer, so I'm assuming this is a simple question. However, I've not found anything via Google or here on SOF.

like image 921
pat Avatar asked Dec 24 '09 04:12

pat


People also ask

Is easy_install deprecated?

easy_install, now deprecated, was released in 2004 as part of setuptools. It was notable at the time for installing packages from PyPI using requirement specifiers, and automatically installing dependencies.

How do I install specific versions on setuptools?

To use a specific version of setuptools it is necessary to have it in both locations - in pyproject. toml and at the beginning of install_requires of setup.py. The tool like pip will use the version from pyproject. toml to build the project.


2 Answers

This seems to get a lot of hits from google, so I thought I'd update for those folks. I was able to do:

easy_install --version 

which produced the output

setuptools 3.4.3 

I believe this only works for some (newer?) versions of setuptools

like image 131
ErlVolton Avatar answered Oct 07 '22 13:10

ErlVolton


One way would be to look at the actual source file for easy_install. Do

which easy_install 

to see where it's located, and then use that path in

less path/to/easy_install 

The second line in my easy_install script says:

# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.6c11','console_scripts','easy_install' 

which suggests that I have easy_install version 0.6c11.

like image 21
Vlad the Impala Avatar answered Oct 07 '22 13:10

Vlad the Impala