The bug tracker for setuptools 0.7 or higher is on BitBucket



Title [PATCH] easy_install won't tell you what version it is
Priority feature Status chatting
Superseder Nosy List pjenvey, zooko
Assigned To Keywords

Created on 2008-05-30.16:17:41 by zooko, last changed 2008-11-26.02:11:38 by pjenvey.

File name Uploaded Type Edit Remove
easy_install-version-r66750.diff pjenvey, 2008-11-26.02:11:37 text/plain
msg213 (view) Author: pjenvey Date: 2008-11-26.02:11:37
This indeed sucks; so here's a patch. It's using pkg_resources.get_distribution,  
and I can't see how that could be a problem. Looks like:

$ easy_install --help

Global options:
  --verbose (-v)  run verbosely (default)
  --quiet (-q)    run quietly (turns verbosity off)
  --dry-run (-n)  don't actually do anything
  --help (-h)     show detailed help message

Options for 'easy_install' command:
  --prefix                       installation prefix
  --zip-ok (-z)                  install package as a zipfile
  --multi-version (-m)           make apps have to require() a version
  --upgrade (-U)                 force upgrade (searches PyPI for latest
  --install-dir (-d)             install package to DIR
  --script-dir (-s)              install scripts to DIR
  --exclude-scripts (-x)         Don't install scripts
  --always-copy (-a)             Copy all needed packages to install dir
  --index-url (-i)               base URL of Python Package Index
  --find-links (-f)              additional URL(s) to search for packages
  --delete-conflicting (-D)      no longer needed; don't use this
  --ignore-conflicts-at-my-risk  no longer needed; don't use this
  --build-directory (-b)         download/extract/build in DIR; keep the
  --optimize (-O)                also compile with optimization: -O1 for
                                 "python -O", -O2 for "python -OO", and -O0 to
                                 disable [default: -O0]
  --record                       filename in which to record list of installed
  --always-unzip (-Z)            don't install as a zipfile, no matter what
  --site-dirs (-S)               list of directories where .pth files work
  --editable (-e)                Install specified packages in editable form
  --no-deps (-N)                 don't install dependencies
  --allow-hosts (-H)             pattern(s) that hostnames must match
  --local-snapshots-ok (-l)      allow building eggs from local checkouts
  --version                      print version information and exit

usage: easy_install [options] requirement_or_url ...
   or: easy_install --help

$ easy_install --version
setuptools 0.6c9dev-r66750
$ echo $?

I don't care if we prefix it with 'setuptools' like I have it, 'easy_install' or 
nothing at all. against r66750
msg19 (view) Author: zooko Date: 2008-05-30.16:17:41
I'm wondering what version of "easy_install" I have here.  "easy_install
--version" doesn't work, and "easy_install --help" doesn't mention the version
Date User Action Args
2008-11-26 02:11:38pjenveysetfiles: + easy_install-version-r66750.diff
status: unread -> chatting
messages: + msg213
nosy: + pjenvey
title: easy_install won't tell you what version it is -> [PATCH] easy_install won't tell you what version it is
2008-08-05 14:56:30pjesetpriority: bug -> feature
2008-05-30 16:17:41zookocreate