summaryrefslogtreecommitdiff
path: root/pkg_resources.py
Commit message (Collapse)AuthorAgeFilesLines
* Change references to ez_setup to point to our own bootstrapping instead.Hanno Schlichting2009-08-081-1/+1
| | | | | | --HG-- branch : distribute extra : rebase_source : 4a2876da3de96acd0cae98f6cc2cdac28ed39846
* removing setuptools module names from user warningstarek2009-08-051-1/+2
| | | | | | --HG-- branch : distribute extra : rebase_source : f20f663e7122029c873fde4df0b076697d3c4a44
* fixed distribution key in check_version_conflict. I first thaught it was the ↵tarek2009-07-211-1/+1
| | | | | | | | #36 issue of setuptools but it's not. --HG-- branch : distribute extra : rebase_source : 87a541261be9881f95e7d62308f99f89f6319dd9
* adding the distribute marker here tootarek2009-07-211-0/+9
| | | | | | --HG-- branch : distribute extra : rebase_source : 3278ed8e7f622b6ece09190ba704832cb23480e9
* Avoid a call to /usr/bin/sw_vers on OSX and use the official platform API ↵Hanno Schlichting2009-07-171-8/+3
| | | | | | | | instead. Based on a patch from ronaldoussoren. This closes #5. --HG-- branch : distribute extra : rebase_source : a608bd596af3fab7caaed024b5699341ba8d9a5a
* Fixed a SandboxViolation for mkdir that could occur in certain cases. This ↵Hanno Schlichting2009-07-171-10/+10
| | | | | | | | closes http://bitbucket.org/tarek/distribute/issue/13. This is a backport of a patch made by PJE on setuptools trunk. --HG-- branch : distribute extra : rebase_source : dcce2f853c21d323a80375c19bcf94c96826aa4e
* Cherry-picked documentation and style changes from setuptools trunkHanno Schlichting2009-07-171-12/+3
| | | | | | --HG-- branch : distribute extra : rebase_source : 90744e00df97b8b79c6780d7600f189bf2e39a6c
* Allow to find_on_path on systems with tight permissions to fail gracefully. ↵Hanno Schlichting2009-07-161-1/+1
| | | | | | | | This closes #9. --HG-- branch : distribute extra : rebase_source : ff1f9a886a4524e59ea14f4063bf9074d0568082
* Corrected inconsitency between documentation and code of add_entry. This ↵Hanno Schlichting2009-07-161-1/+1
| | | | | | | | closes #8. --HG-- branch : distribute extra : rebase_source : b38177940dc7df122d6faa535f32025e241fc129
* Apply patch from pjenvey. Closes #3.Hanno Schlichting2009-07-161-1/+4
| | | | | | --HG-- branch : distribute extra : rebase_source : 3a61d0692c74559b140c179dcc5f4ac4905bb982
* Backport doc changes from trunkPJ Eby2008-08-211-2/+3
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4065935
* Fix ``resource_listdir('')`` always returning an empty list for zippedPJ Eby2008-02-151-3/+3
| | | | | | | | | eggs. Fix missing import in sdist command when encountering unrecognized SVN entries format. (backports from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4060849
* Fix package precedence problem where single-version eggs installed inPJ Eby2007-09-041-2/+2
| | | | | | | | | | ``site-packages`` would take precedence over ``.egg`` files (or directories) installed in ``site-packages``. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4057944
* Backport fixes and doc updates; prep for 0.6c6 releasePJ Eby2007-05-311-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4055712
* Added ``--local-snapshots-ok`` flag, to allow building eggs fromPJ Eby2007-02-231-1/+1
| | | | | | | | projects installed using ``setup.py develop``. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053877
* Get rid of 'sets' module usage under Python 2.4+, so that no warningsPJ Eby2007-02-231-2/+43
| | | | | | | | are issued by Python 2.6. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053871
* Actually process relative .egg-link files (backport from trunk)PJ Eby2007-02-151-1/+1
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053794
* Fix extracted C extensions not having executable permissions under Cygwin.PJ Eby2007-02-081-1/+42
| | | | | | | | (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053674
* Fix "dev" versions being considered newer than release candidates.PJ Eby2006-09-251-1/+1
| | | | | | | | (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4052002
* More Python 2.5 compatibility fixes.PJ Eby2006-09-201-7/+7
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051937
* Backport all known 2.5-compatibility fixesPJ Eby2006-09-201-7/+7
| | | | | | --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051935
* Fix a problem with eggs specified directly on ``PYTHONPATH`` onPJ Eby2006-07-211-3/+3
| | | | | | | | | | case-insensitive filesystems possibly not showing up in the default working set, due to differing normalizations of ``sys.path`` entries. (backport from trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4050757
* Fixed a duplicate path insertion problem on case-insensitivePJ Eby2006-06-071-11/+52
| | | | | | | | filesystems. (Merge from 0.7 trunk) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4046712
* Fix entry point parsing when a standalone module name has whitespacePJ Eby2006-04-271-1/+1
| | | | | | | | between it and the extras. --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045765
* Split ``get_platform()`` into ``get_supported_platform()`` andPJ Eby2006-04-181-7/+7
| | | | | | | | | | | ``get_build_platform()`` to work around a Mac versioning problem that caused the behavior of ``compatible_platforms()`` to be platform specific. (Backport from 0.7 trunk, rev 45536) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4045538
* Added ``ExtractionError`` and ``ResourceManager.extraction_error()`` so thatPJ Eby2006-03-291-43/+125
| | | | | | | | | | cache permission problems get a more user-friendly explanation of the problem, and so that programs can catch and handle extraction errors if they need to. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043426
* Eliminate spurious warnings due to case-insensitive file systemsPJ Eby2006-03-281-2/+2
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4043403
* Added the ``extras`` attribute to ``Distribution``, the ``find_plugins()``PJ Eby2006-02-141-7/+130
| | | | | | | | | method to ``WorkingSet``, and the ``__add__()`` and ``__iadd__()`` methods to ``Environment``. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042358
* Added ``Distribution.clone()`` method, and keyword argument support toPJ Eby2006-02-071-10/+51
| | | | | | | | | | other ``Distribution`` constructors. Added the ``DEVELOP_DIST`` precedence, and automatically assign it to eggs using ``.egg-info`` format. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042259
* Implement more Mac OS X version handling stuff requested by BobPJ Eby2006-02-071-23/+23
| | | | | | | | Ippolito. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042256
* Honor get_platform() for Mac OS X if it starts with 'macosx-'PJ Eby2006-02-041-4/+4
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4042231
* ``safe_name()`` now allows dots in project names, and there is a newPJ Eby2006-01-101-11/+11
| | | | | | | | | | | | | | | ``to_filename()`` function that escapes project names and versions for safe use in constructing egg filenames from a Distribution object's metadata. Note that allowing dots may now cause problems for projects with '.' in the name that were previously installed, since such projects had to be spelled with a '-' before. The '-' name will no longer match the '.' project, and there is no real room for backward compatibility here. :( --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041994
* PyPI searches now use the exact spelling of requirements specified onPJ Eby2006-01-071-10/+10
| | | | | | | | | | | the command line or in a project's ``install_requires``. Previously, a normalized form of the name was used, which could lead to unnecessary full-index searches when a project's name had an underscore (``_``) in it. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041942
* Make it clearer that Requirement.parse() is the only way for usersPJ Eby2006-01-031-3/+3
| | | | | | | | to create correct Requirement instances. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041909
* Modify resource extraction to bypass sandbox control so that eggPJ Eby2005-12-151-16/+16
| | | | | | | | extraction during setup runs is not restricted. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041701
* Improve startup performance when sys.path contains a lot of eggs, byPJ Eby2005-12-151-11/+11
| | | | | | | | | | caching normalized versions of path entries. It appears that normalizing paths using os.path.realpath is extremely expensive on at least Windows. Caching cuts the overhead by around 30X. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041698
* Changed ``parse_version()`` to remove dashes before pre-release tags, soPJ Eby2005-12-061-2/+2
| | | | | | | | | | | that ``0.2-rc1`` is considered an *older* version than ``0.2``, and is equal to ``0.2rc1``. The idea that a dash *always* meant a post-release version was highly non-intuitive to setuptools users and Python developers, who seem to want to use ``-rc`` version numbers a lot. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041630
* Remove unneeded code that slipped into last commit.PJ Eby2005-12-061-1/+1
| | | | | | --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041616
* Added support for ``.egg-info`` files or directories with version/platformPJ Eby2005-12-061-29/+29
| | | | | | | | | | | information embedded in the filename, so that system packagers have the option of including ``PKG-INFO`` files to indicate the presence of a system-installed egg, without needing to use ``.egg`` directories, zipfiles, or ``.pth`` manipulation. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041615
* If more than one URL appears to describe the exact same distribution, preferPJ Eby2005-11-261-1/+1
| | | | | | | | | the shortest one. This helps to avoid "table of contents" CGI URLs like the ones on effbot.org. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041550
* Don't raise an error when an invalid (unfinished) distribution is foundPJ Eby2005-11-181-22/+22
| | | | | | | | | unless absolutely necessary. Warn about skipping invalid/unfinished eggs when building an Environment. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041469
* Fixed a problem with nested namespace packages (e.g. ``peak.util``) notPJ Eby2005-11-131-9/+9
| | | | | | | | being set as an attribute of their parent package. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041431
* Normalize items in sys.path when determining where to insertPJ Eby2005-11-091-1/+1
| | | | | | | | a new item. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041408
* * Improved runtime conflict warning message to identify a line in the user'sPJ Eby2005-11-041-15/+15
| | | | | | | | | | | program, rather than flagging the ``warn()`` call in ``pkg_resources``. * Avoid giving runtime conflict warnings for namespace packages, even if they were declared by a different package than the one currently being activated. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041391
* Fixed a problem with ``WorkingSet.resolve()`` that prevented versionPJ Eby2005-11-031-1/+1
| | | | | | | | conflicts from being detected at runtime. (As reported by Ian Bicking.) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041380
* Fixed a problem extracting zipped files on Windows, when the egg inPJ Eby2005-10-221-5/+5
| | | | | | | | question has had changed contents but still has the same version number. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041267
* 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
* Significantly enhanced support and docs for "non-root" installation,PJ Eby2005-10-171-10/+51
| | | | | | | | | | | | | | | | | | | | including both "virtual" and PYTHONPATH-based installs. The activation precedence of distributions has also changed so that PYTHONPATH-based non-root installs can include eggs that override system-defined packages (whether managed or unmanaged). This version should eliminate most common installation complaints from non-root Python users. Note: this version includes a hacked 'site.py' to support processing .pth files in directories that come *before* site-packages on sys.path. However, because of its placement, it should only come into play when a user puts the setuptools .egg file *directly* on PYTHONPATH, so it doesn't affect "virtual" or "root" installations. It's strictly to provide support for luddites who refuse to give up their existing non-root PYTHONPATH setup unless you pry it from their cold, dead hands. :) --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041262
* Ensure that WorkingSet.resolve() (and therefore require() as well)PJ Eby2005-09-261-7/+7
| | | | | | | | | | returns a list of the relevant distributions, even if they are found in the working set rather than the environment. This fixes some problems in the 0.6a3 release. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041256
* Fix a problem with inconsistent quoting of "extras", reported by IanPJ Eby2005-09-241-15/+15
| | | | | | | | Bicking on the distutils-sig. --HG-- branch : setuptools extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041253