aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
Commit message (Collapse)AuthorAgeFilesLines
* Indicate when dependency processing is finished, so that you can tellPJ Eby2007-02-231-1/+1
| | | | | | | | | which dependencies go with what. (Suggested by Ian Bicking) (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053869
* Fix error if script contains null byte. (backport from trunk)PJ Eby2007-02-171-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053814
* Fix script language detection problem (backport from trunk)PJ Eby2007-02-011-12/+12
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053615
* Fixed distutils-style scripts originally built on Windows having theirPJ Eby2007-02-011-1/+1
| | | | | | | | line endings doubled when installed on any platform. (backport) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053612
* Bump version to 0.6c5, and backport bdist_rpm and cygwin dll fixesPJ Eby2007-01-091-8/+8
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053317
* Switch default package-index to cheeseshop.python.org, and makePJ Eby2006-12-291-1/+1
| | | | | | | | setuptools' home page its cheeseshop page. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053196
* Overhauled Windows script wrapping to support ``bdist_wininst`` better.PJ Eby2006-12-291-15/+56
| | | | | | | | | | | | Scripts installed with ``bdist_wininst`` will always use ``#!python.exe`` or ``#!pythonw.exe`` as the executable name (even when built on non-Windows platforms!), and the wrappers will look for the executable in the script's parent directory (which should find the right version of Python). (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053194
* Partial support for cross-platform generation of bdist_wininst .exe's.PJ Eby2006-12-291-6/+6
| | | | | | | | | | | Unfortunately, bdist_wininst doesn't fix up #! lines, so python.exe or pythonw.exe have to be on PATH for generated scripts to work. This could probably be fixed up with a post-install script, but that's a job for another day. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053186
* Removed all special support for Sourceforge mirrors, as Sourceforge'sPJ Eby2006-12-291-3/+3
| | | | | | | | | mirror system now works well for non-browser downloads. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053178
* Fixed a problem with ``.pth`` testing on Windows when ``sys.executable``PJ Eby2006-12-011-1/+1
| | | | | | | | | has a space in it (e.g., the user installed Python to a ``Program Files`` directory). (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052887
* Use cross-platform relative paths in ``easy-install.pth`` when doingPJ Eby2006-09-291-3/+44
| | | | | | | | | | ``develop`` and the source directory is a subdirectory of the installation target directory. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052047
* Allow explicit selection of Sourceforge mirror(s) with ``--sf-mirror``, andPJ Eby2006-09-271-4/+4
| | | | | | | | | further refine download/retry algorithm. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052013
* 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