summaryrefslogtreecommitdiff
path: root/setuptools/command/easy_install.py
Commit message (Collapse)AuthorAgeFilesLines
...
* 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)
* 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)
* 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)
* 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)
* 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)
* Allow explicit selection of Sourceforge mirror(s) with ``--sf-mirror``, andPJ Eby2006-09-271-4/+4
| | | | | further refine download/retry algorithm. (backport from trunk)
* 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)
* Fix easy_install not recognizing win32.exe files that include a custom bitmap.PJ Eby2006-09-211-1/+1
| | | | (backport from trunk)
* Backport all known 2.5-compatibility fixesPJ Eby2006-09-201-1/+1
|
* 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)
* Don't check installation directory writability and site/.pth setup whenPJ Eby2006-09-061-2/+2
| | | | using --editable.
* Fix ``sys.path_importer_cache`` not being updated when an existing zipfilePJ Eby2006-07-101-9/+9
| | | | or directory is deleted/overwritten.
* 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)
* Fix sometimes not detecting local packages installed outside of "site"PJ Eby2006-06-091-1/+1
| | | | | directories. (merge from trunk)
* Fix local --find-links eggs not being copied except with --always-copy.PJ Eby2006-06-071-11/+11
| | | | (merge from trunk)
* 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.
* Don't make things warnings that aren't; update info text forPJ Eby2006-05-261-6/+6
| | | | --multi-version. (backport from trunk)
* 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)
* Backport 'module' fixes to 0.6PJ Eby2006-04-241-3/+3
|
* Implement dependency_links feature, courtesy of Tres Seaver's roughPJ Eby2006-03-291-4/+6
| | | | draft of a patch.
* 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.
* Fix ZipImportError when overwriting a zipfile with the same name/versionPJ Eby2006-03-241-13/+13
| | | | but different contents.
* 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.
* 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``.
* 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.
* When installing setup_requires/tests_require packages, usePJ Eby2006-02-281-2/+2
| | | | --multi-version so that '.' doesn't have to support .pth files.
* 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.
* Fix a Windows problem when the Python executable is in a directory withPJ Eby2006-02-141-11/+11
| | | | a ' ' in its name.
* 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``.
* Fixed the annoying ``--help-commands`` wart, albeit in a mostPJ Eby2006-02-101-6/+47
| | | | unfortunately kludgy fashion.
* --prefix support for even more do-what-I-meanishness. :)PJ Eby2006-02-101-32/+72
|
* 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.
* 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.
* Oops, bad indentation.PJ Eby2006-02-101-2/+2
|
* 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".
* 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``.
* 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.
* Fix missing import.PJ Eby2006-01-271-1/+1
|
* 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.
* Fix typo.PJ Eby2006-01-221-1/+1
|
* 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).
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* Handle non-requirement installs correctly for dependency processingPJ Eby2005-11-031-2/+2
| | | | (e.g. "setup.py install", or "easy_install somefile/someurl").
* 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