summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor tweak to installation report, and add in a hook for laterPJ Eby2006-02-141-6/+6
| | | | | | | | displaying the "extras" that can be added to a package. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042363
* Fix a Windows problem when the Python executable is in a directory withPJ Eby2006-02-141-11/+11
| | | | | | | | a ' ' in its name. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042359
* Added exhaustive testing of the install directory, including a spawn testPJ Eby2006-02-131-24/+147
| | | | | | | | | for ``.pth`` file support, and directory writability/existence checks. This should virtually eliminate the need to set or configure ``--site-dirs``. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042346
* Fixed the annoying ``--help-commands`` wart, albeit in a mostPJ Eby2006-02-101-6/+47
| | | | | | | | unfortunately kludgy fashion. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042312
* --prefix support for even more do-what-I-meanishness. :)PJ Eby2006-02-101-32/+72
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042310
* Implemented DWIM for PYTHONPATH. That is, ez_setup and easy_installPJ Eby2006-02-101-14/+97
| | | | | | | | | should now "just work" if you're using a PYTHONPATH target, and if it can't "just work", you get helpful instructions and doc links. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042308
* Ugh. Rereading the Fedora patch shows my previous hack won't actuallyPJ Eby2006-02-101-2/+2
| | | | | | | | | accomplish anything useful. This one should, but it needs testing by someone who actually has a Fedora 64-bit x86 setup. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042301
* Oops, bad indentation.PJ Eby2006-02-101-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042300
* Tweak site_dirs detection so that distros with weird layouts (e.g.PJ Eby2006-02-101-4/+4
| | | | | | | | | /usr/lib64 patches on 64-bit Fedora) will have a better chance of working "out of the box". --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042299
* The ``--find-links`` option previously scanned all supplied URLs andPJ Eby2006-02-081-3/+3
| | | | | | | | | | | | directories as early as possible, but now only directories and direct archive links are scanned immediately. URLs are not retrieved unless a package search was already going to go online due to a package not being available locally, or due to the use of the ``--update`` or ``-U`` option. Also, fixed the ``develop`` command ignoring ``--find-links``. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042262
* The ``--always-copy`` option now skips "system" and "development" eggsPJ Eby2006-02-071-13/+13
| | | | | | | | | | | since they can't be reliably copied. Note that this may cause EasyInstall to choose an older version of a package than what you expected, or it may cause downloading and installation of a fresh version of what's already installed. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042260
* Fix missing import.PJ Eby2006-01-271-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042195
* Expand ``$variables`` used in the ``--site-dirs``, ``--build-directory``,PJ Eby2006-01-261-10/+10
| | | | | | | | | ``--install-dir``, and ``--script-dir`` options, whether on the command line or in configuration files. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042191
* Fix typo.PJ Eby2006-01-221-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042148
* EasyInstall can now download bare ``.py`` files and wrap them in an egg,PJ Eby2006-01-101-1/+1
| | | | | | | | | | | | as long as you include an ``#egg=name-version`` suffix on the URL, or if the ``.py`` file is listed as the "Download URL" on the project's PyPI page. This allows third parties to "package" trivial Python modules just by linking to them (e.g. from within their own PyPI page or download links page). --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041995
* Make the install_scripts command respect the "build_scripts -e"PJ Eby2005-12-261-5/+5
| | | | | | | | | option when installing generated scripts using the --single-version-externally-managed option. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041815
* Support full roundtrip translation of eggs to and from ``bdist_wininst``PJ Eby2005-12-141-9/+9
| | | | | | | | | | | | | | | format. Running ``bdist_wininst`` on a setuptools-based package wraps the egg in an .exe that will safely install it as an egg (i.e., with metadata and entry-point wrapper scripts), and ``easy_install`` can turn the .exe back into an ``.egg`` file or directory and install it as such. At this point, it should also be possible to "system package" any egg, complete with wrapper scripts, and at least bdist_wininst works now. More testing is needed for at least bdist_dumb and bdist_rpm. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041692
* Refactor script wrapper generation into a separate function so that itPJ Eby2005-12-141-48/+48
| | | | | | | | | can be used by the future install_scripts command to install entry point scripts in "legacy" mode. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041690
* Basic roundtripping support between bdist_wininst and eggs. EasyInstallPJ Eby2005-12-141-16/+16
| | | | | | | | | | | will now recognize when a bdist_wininst .exe wraps a .egg-info style package, and reconstitute it correctly, maintaining the original zip safety flag, if applicable. This still needs support for entrypoint scripts, though, as does the install_scripts command. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041678
* 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