summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for "eggsecutable" headers: a /bin/sh script that is prependedPJ Eby2006-09-221-4/+4
| | | | | | | | | | | to an .egg file to allow it to be run as a script on Unix-ish platforms. (This is mainly so that setuptools itself can have a single-file installer on Unix, without doing multiple downloads, dealing with firewalls, etc.) (Backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051969
* Fix easy_install not recognizing win32.exe files that include a custom bitmap.PJ Eby2006-09-211-1/+1
| | | | | | | | (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051957
* Backport all known 2.5-compatibility fixesPJ Eby2006-09-201-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051935
* Generated scripts now use ``-x`` on the ``#!`` line when ``sys.executable``PJ Eby2006-09-061-11/+11
| | | | | | | | | | contains non-ASCII characters, to prevent deprecation warnings about an unspecified encoding when the script is run. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051791
* Don't check installation directory writability and site/.pth setup whenPJ Eby2006-09-061-2/+2
| | | | | | | | using --editable. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051782
* Fix ``sys.path_importer_cache`` not being updated when an existing zipfilePJ Eby2006-07-101-9/+9
| | | | | | | | or directory is deleted/overwritten. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050546
* Implement detection of non-Python scripts, as described inPJ Eby2006-06-151-5/+46
| | | | | | | | | http://mail.python.org/pipermail/distutils-sig/2006-June/006359.html (merge from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046986
* Fix sometimes not detecting local packages installed outside of "site"PJ Eby2006-06-091-1/+1
| | | | | | | | | directories. (merge from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046782
* Fix local --find-links eggs not being copied except with --always-copy.PJ Eby2006-06-071-11/+11
| | | | | | | | (merge from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046726
* Construct ``.pth`` file paths in such a way that installing an egg whosePJ Eby2006-05-301-3/+3
| | | | | | | | name begins with ``import`` doesn't cause a syntax error. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046564
* Don't make things warnings that aren't; update info text forPJ Eby2006-05-261-6/+6
| | | | | | | | --multi-version. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046390
* Don't install or update a ``site.py`` patch when installing to aPJ Eby2006-05-231-5/+3
| | | | | | | | | | | ``PYTHONPATH`` directory with ``--multi-version``, unless an ``easy-install.pth`` file is already in use there. (Bugfix merge from 0.7 trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046143
* Backport 'module' fixes to 0.6PJ Eby2006-04-241-3/+3
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045696
* Implement dependency_links feature, courtesy of Tres Seaver's roughPJ Eby2006-03-291-4/+6
| | | | | | | | draft of a patch. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043423
* Support complex .pth files in win32.exe->.egg conversion; this additionPJ Eby2006-03-291-5/+5
| | | | | | | | | lets easy_install handle pywin32... well, almost. You still have to deal with the "system" DLLs yourself. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043417
* Fix ZipImportError when overwriting a zipfile with the same name/versionPJ Eby2006-03-241-13/+13
| | | | | | | | but different contents. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043297
* Use relative paths in ``.pth`` files when eggs are being installed to thePJ Eby2006-03-201-14/+14
| | | | | | | | | same directory as the ``.pth`` file. This maximizes portability of the target directory when building applications that contain eggs. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043178
* Support namespace packages in conjunction with system packagers, by omittingPJ Eby2006-03-171-2/+2
| | | | | | | | | the installation of any ``__init__.py`` files for namespace packages, and adding a special ``.pth`` file to create a working package in ``sys.modules``. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043119
* Added automatic handling of installation conflicts. Eggs are now shifted toPJ Eby2006-03-111-22/+63
| | | | | | | | | | | | | the front of sys.path, in an order consistent with where they came from, making EasyInstall seamlessly co-operate with system package managers. The ``--delete-conflicting`` and ``--ignore-conflicts-at-my-risk`` options are now no longer necessary, and will generate warnings at the end of a run if you use them. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042965
* When installing setup_requires/tests_require packages, usePJ Eby2006-02-281-2/+2
| | | | | | | | --multi-version so that '.' doesn't have to support .pth files. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042681
* 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