aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
Commit message (Collapse)AuthorAgeFilesLines
* Made all commands that use ``easy_install`` respect its configurationPJ Eby2005-12-011-11/+11
| | | | | | | | | options, as this was causing some problems with ``setup.py install`` ignoring global site-dirs settings. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041573
* Fixed ``.pth`` file processing picking up nested eggs (i.e. ones insidePJ Eby2005-11-181-3/+3
| | | | | | | | "baskets") when they weren't explicitly listed in the ``.pth`` file. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041477
* Fix rmtree() brokenness with Python 2.4 by breaking down and copyingPJ Eby2005-11-051-41/+41
| | | | | | | | shutil.rmtree from 2.4 directly into easy_install.py. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041402
* Handle non-requirement installs correctly for dependency processingPJ Eby2005-11-031-2/+2
| | | | | | | | (e.g. "setup.py install", or "easy_install somefile/someurl"). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041383
* Fix some Subversion-related problems reported by John J. Lee:PJ Eby2005-11-031-21/+62
| | | | | | | | | | | | | | * Fixed not installing dependencies for some packages fetched via Subversion * Fixed dependency installation with ``--always-copy`` not using the same dependency resolution procedure as other operations. * Fixed not fully removing temporary directories on Windows, if a Subversion checkout left read-only files behind --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041382
* Added "--allow-hosts" option to restrict downloading and spidering toPJ Eby2005-10-191-9/+9
| | | | | | | | a specified list of server glob patterns. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041266
* Hurray! Our first dependency processing bug! This is cool because itPJ Eby2005-10-181-1/+1
| | | | | | | | | | | | | means that people are finally doing enough things with setuptools to have real-life version conflict scenarios. Luckily, the fix is trivial: use breadth-first instead of depth-first dependency processing, which I thought we were already doing anyway, but weren't. And we were giving precedence to already-installed packages, which means upgrades didn't work so well. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041265
* Fix problem with Windows console scripts conflicting with module names,PJ Eby2005-10-161-14/+14
| | | | | | | | | | | thereby confusing the import process. Scripts are now generated with a suffix of the form '-script.py' to avoid conflicts. (The .exe's are still generated without the '-script' part, so you don't have to type it.) Thanks to Matthew R. Scott for reporting the problem. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041261
* Implement --no-deps option, add link to Ian Bicking's non-root PythonPJ Eby2005-10-161-4/+4
| | | | | | | | builder script. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041260
* Support generating .pyw/.exe wrappers for Windows GUI scripts, andPJ Eby2005-09-241-41/+41
| | | | | | | | "normal" #! wrappers for GUI scripts on other platforms. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041254
* Implement smart version conflict resolution for scripts, so thatPJ Eby2005-09-241-3/+3
| | | | | | | | | | | | | | | installed applications will not have their eggs overridden by packages installed locally on sys.path. This should also make things work a bit better for "traditional" non-root Python setups on Unixy operating systems. See: http://mail.python.org/pipermail/distutils-sig/2005-September/005164.html for more details. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041250
* Added support to solve the infamous "we want .py on Windows, noPJ Eby2005-09-171-58/+99
| | | | | | | | | | | | | | extension elsewhere" problem, while also bypassing the need for PATHEXT on Windows, and in fact the need to even write script files at all, for any platform. Instead, you define "entry points" in your setup script, in this case the names of the scripts you want (without extensions) and the functions that should be imported and run to implement the scripts. Setuptools will then generate platform-appropriate script files at install time, including an .exe wrapper when installing on Windows. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041246
* Ensure wrapper scripts are included in output file record; this isPJ Eby2005-09-031-1/+1
| | | | | | | | especially important for RPMs with scripts. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041237
* Make sure that script target directory exists. Ordinarily it should, butPJ Eby2005-09-031-1/+1
| | | | | | | | some bdist_* targets install to a pseudo-root where stuff might not exist. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041236
* Fix typo in symlink handling code.PJ Eby2005-09-031-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041235
* D'oh! os.path.islink is available on all platforms. Also, ensure that wePJ Eby2005-08-231-21/+21
| | | | | | | | | do directory tree removals only if isdir() and not islink(), and use unlink() in all other cases. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041230
* Simplify non-root install process and improve Mac OS docs for it. SupportPJ Eby2005-08-231-11/+11
| | | | | | | | | .pth files and legacy packages possibly being symlinks, and ensure that overwrites don't follow the symlink. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041229
* Make easy_install --record strip the RPM root when building RPMs, and havePJ Eby2005-08-221-7/+7
| | | | | | | | | | bdist_egg ignore the RPM root when building an egg. This version now can actually run bdist_rpm to completion, although the resulting RPM will install an egg without a corresponding .pth file. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041226
* Fix a bug introduced by removing the Environment.get() method.PJ Eby2005-08-141-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041201
* Fix bugs reported by Ian Bicking, Walter Doerwald, and Vincenzo Di Massa.PJ Eby2005-08-111-8/+8
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041189
* Renamed AvailableDistributions -> Environment. Add sketch of pkg_resourcesPJ Eby2005-08-071-6/+6
| | | | | | | | manual outline. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041184
* Change dependency processing algorithm for less redundancy in the commonPJ Eby2005-08-061-24/+65
| | | | | | | | case, and more thoroughness in the --always-copy case. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041178
* Fix a regression; this code was changed in order to avoid being fooled byPJ Eby2005-07-241-3/+3
| | | | | | | | | incompatible eggs that might have ended up in the distribution directory, but the "fixed" code was broken. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041148
* Implement --editable option, which allows you to just download and extractPJ Eby2005-07-241-116/+116
| | | | | | | | | (or check out from Subversion) one or more source distributions, without actually building or installing them (or their dependencies). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041147
* Fixed installing extra ``.pyc`` or ``.pyo`` files for scripts with ``.py``PJ Eby2005-07-211-1/+1
| | | | | | | | extensions. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041139
* Massive API refactoring; see setuptools.txt changelog for details. Also,PJ Eby2005-07-181-25/+25
| | | | | | | | | add ``#egg=project-version`` link support, and docs on how to make your package available for EasyInstall to find. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041136
* Massive API refactoring; see setuptools.txt changelog for details. Also,PJ Eby2005-07-181-31/+31
| | | | | | | | | add ``#egg=project-version`` link support, and docs on how to make your package available for EasyInstall to find. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041135
* The ``path`` attribute of ``Distribution`` objects is now ``location``,PJ Eby2005-07-171-17/+17
| | | | | | | | | | | because it isn't necessarily a filesystem path (and hasn't been for some time now). ``Distribution`` objects now have an ``as_requirement()`` method that returns a ``Requirement`` for the distribution's project name and version. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041134
* ``Distribution`` objects now implement the ``IResourceProvider`` andPJ Eby2005-07-171-6/+6
| | | | | | | | | ``IMetadataProvider`` interfaces, so you don't need to reference the (no longer available) ``metadata`` attribute to get at these interfaces. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041133
* Renamings for consistent terminology; distributions and requirements nowPJ Eby2005-07-171-6/+6
| | | | | | | | | | | | | both have 'project_name' attributes, instead of one having 'name' and the other 'distname'. Requirements no longer have 'options', they have 'extras'. This is the beginning of the terminology/architecture refactoring described at: http://mail.python.org/pipermail/distutils-sig/2005-June/004652.html --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041132
* Added ``--site-dirs`` option to allow adding custom "site" directories.PJ Eby2005-07-161-28/+110
| | | | | | | | | Made ``easy-install.pth`` work in platform-specific alternate site directories (e.g. ``~/Library/Python/2.x/site-packages``). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041131
* Update zip-safety scanner to check for modules that might be used asPJ Eby2005-07-121-7/+7
| | | | | | | | | ``python -m`` scripts. Misc. fixes for win32.exe support, including changes to support Python 2.4's changed ``bdist_wininst`` format. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041123
* Enhanced "zip safety" analysis (including scan of win32.exe's) and havePJ Eby2005-07-111-29/+29
| | | | | | | | EasyInstall act on zip safety flags. Add a lot more docs for setuptools. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041115
* Implement ``namespace_packages`` keyword to ``setup()``. Added keywordPJ Eby2005-07-101-2/+2
| | | | | | | | summary to setuptools doc. Begin work on ``zip_safe`` flag. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041113
* EasyInstall now builds eggs in a temporary directory alongside the setupPJ Eby2005-07-101-34/+34
| | | | | | | | | | | | | script it's running. This avoids it getting confused by projects with non-standard distribution locations, and projects that may have various eggs already sitting in their distribution directory. It should probably also do something like this for the build directory to ensure a clean, fresh build, but it seems like overkill, since it only affects local projects, not stuff that EasyInstall downloaded in the first place. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041111
* Allow EasyInstall to accept a directory containing a setup script as onePJ Eby2005-07-101-3/+3
| | | | | | | | | of its arguments. Fix swapped short option names for --bdist-dir and --dist-dir in bdist_egg. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041110
* Detect and handle conflicts with "unmanaged" packages when installingPJ Eby2005-07-101-27/+191
| | | | | | | | | packages managed by EasyInstall. Also, add an option to exclude source files from .egg distributions. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041109
* Beefed up the "sdist" command so that if you don't have a MANIFEST.in, itPJ Eby2005-07-071-1/+1
| | | | | | | | | | | | will include all files under revision control (CVS or Subversion) in the current directory, and it will regenerate the list every time you create a source distribution, not just when you tell it to. This should make the default "do what you mean" more often than the distutils' default behavior did, while still retaining the old behavior in the presence of MANIFEST.in. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041087
* Added ``develop`` command to ``setuptools``-based packages. This commandPJ Eby2005-07-061-44/+85
| | | | | | | | | | | | installs an ``.egg-link`` pointing to the package's source directory, and script wrappers that ``execfile()`` the source versions of the package's scripts. This lets you put your development checkout(s) on sys.path without having to actually install them. (To uninstall the link, use use ``setup.py develop --uninstall``.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041080
* Made ``easy_install`` a standard ``setuptools`` command, moving it fromPJ Eby2005-07-061-0/+820
the ``easy_install`` module to ``setuptools.command.easy_install``. Note that if you were importing or extending it, you must now change your imports accordingly. ``easy_install.py`` is still installed as a script, but not as a module. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041079