summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Force the --python-tag when autobuilding wheelsforce-implementation-tagDonald Stufft2015-11-043-5/+28
| | | | | | | | | | | | A lot of existing tarballs will successfully build a wheel, but the wheel will be implicitly broken because they will have dynamically adjusted the install_requires inside of their setup.py. Typically this is done for things like Python version, implementation, or what OS this is being installed on. We don't consider cache directories to be OS agnostic but we do consider them to be Python version and implementation agnostic. To solve this, we'll force the cached wheel to use a more specific Python tag that includes the major version and the implementation.
* Merge pull request #3205 from xavfernandez/traceback_format_excXavier Fernandez2015-10-242-2/+28
|\ | | | | Fix traceback.format_exc call
| * Fix traceback.format_exc callXavier Fernandez2015-10-242-2/+28
|/ | | | | | | format_exc takes only one argument, limit which should be an integer. python 2 seems more lenient than python 3 on that point. mistake introduced in commit 3148b967a
* Merge pull request #3179 from cloudnull/fix/req_constraintXavier Fernandez2015-10-231-5/+4
|\ | | | | Resolves result obj in req_constraints
| * Fix to ensure "result" object is definedKevin Carter2015-10-231-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes resolves a condition that can lead to a stacktrace due to the use of constraint files. There are several conditions where the result object may be left undefined which causes the problems. ``` traceback Exception: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 211, in main status = self.run(options, args) File "/usr/local/lib/python2.7/dist-packages/pip/commands/wheel.py", line 180, in run wheel_cache File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 266, in populate_requirement_set requirement_set.add_requirement(req) File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 267, in add_requirement return result UnboundLocalError: local variable 'result' referenced before assignment ``` This change simply ensures that the 'result' object is a defined when the method returns. Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
* | Merge pull request #3196 from xavfernandez/improve_missing_setuptools_errorXavier Fernandez2015-10-222-4/+10
|\ \ | | | | | | Report import setuptools error to the user
| * | Use get_installed_version and tracebackXavier Fernandez2015-10-221-7/+5
| | |
| * | Special-case based on exception messageXavier Fernandez2015-10-222-4/+11
| | |
| * | Report import setuptools error to the userXavier Fernandez2015-10-192-4/+5
|/ / | | | | | | closes #2931
* | Merge pull request #3190 from cjwatson/setuptools-find-links-docsMarcus Smith2015-10-151-1/+1
|\ \ | | | | | | Fix example of using setuptools find_links
| * | Fix example of using setuptools find_linksColin Watson2015-10-161-1/+1
|/ / | | | | | | | | | | setuptools.package_index.local_open is used for file: URLs, and only handles directories if the URL ends with a slash. Add the trailing slash to pip's documentation to reduce confusion.
* | Merge pull request #3075 from natefoo/py2-soabiDonald Stufft2015-10-142-19/+149
|\ \ | |/ |/| SOABI support for Python 2.X and PyPy
| * 1. Provide a fallback mechanism for determining ABI flags if config varsNate Coraor2015-10-132-24/+54
| | | | | | | | | | | | | | are unavailable, but issue a warning if this is used. 2. Explicitly handle the case where the unicode detection finds wide unicode but this is a 3.3+ build (necessary due to #1) 3. Fix tests broken due to #2.
| * Add unit tests for manual SOABI detectionNate Coraor2015-10-131-7/+70
| |
| * Setting the `u` ABI flag based on sys.maxunicode is incorrect on recentNate Coraor2015-10-131-1/+1
| | | | | | | | | | | | Pythons with PEP 393 Flexible String Representation (so >= 3.3). Granted, on these Pythons, the SOABI config var should always be set, but the manual SOABI code path should still try to do the right thing.
| * Use the WITH_PYMALLOC and Py_DEBUG config vars for setting the `m` and `d` ABINate Coraor2015-10-131-12/+12
| | | | | | | | flags.
| * Fix unit tests I broke:Nate Coraor2015-10-131-3/+7
| | | | | | | | | | | | | | - Catch IOError wherever sysconfig is used (#1074) - Reapply #2915 Also, be sure to normalize the SOABI
| * SOABI support for Python 2.X and PyPyNate Coraor2015-10-131-12/+45
|/ | | | | | | | Additionally, fix the version portion of the Python tag on wheels built with PyPy that use the Python API. It will now be the Python major version concatenated with the PyPy major and minor versions. Fixes #2671, #2882.
* Merge pull request #3170 from qwcode/req_line_numbers2Marcus Smith2015-10-092-9/+12
|\ | | | | update for processing continuations/comments for req files
| * process line continuations first (but with some special handling for comments)Marcus Smith2015-10-082-9/+12
| |
* | Merge pull request #3066 from mattrobenolt/update-2Donald Stufft2015-10-087-29/+122
|\ \ | | | | | | Only update VCS when things have actually changed
| * | Only update VCS when things have actually changedMatt Robenolt2015-09-017-29/+122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This saves a network hop when using git and passing an explicit sha as a ref by comparing the version that's already checked out. Yields a ~4x speedup on my local machine Before: ``` $ /usr/local/bin/pip --version pip 7.1.0 from /usr/local/lib/python2.7/site-packages (python 2.7) $ time /usr/local/bin/pip install --disable-pip-version-check -e git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev Obtaining raven-dev from git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev Updating ./src/raven-dev clone (to 56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e) Could not find a tag or branch '56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e', assuming commit. Installing collected packages: raven-dev Running setup.py develop for raven-dev Successfully installed raven-dev /usr/local/bin/pip install --disable-pip-version-check -e 0.84s user 0.48s system 39% cpu 3.300 total ``` After: ``` $ /Users/matt/.virtualenvs/pip/bin/pip --version pip 7.2.0.dev0 from /Users/matt/code/pip (python 2.7) $ time /Users/matt/.virtualenvs/pip/bin/pip install --disable-pip-version-check -e git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev Obtaining raven-dev from git+https://github.com/getsentry/raven-python.git@56fc6f7beecf445843d0ec7052bb8c6f0ea80a2e#egg=raven_dev checking version Skipping because already up-to-date. Installing collected packages: raven-dev Running setup.py develop for raven-dev Successfully installed raven-dev /Users/matt/.virtualenvs/pip/bin/pip install --disable-pip-version-check -e 0.59s user 0.22s system 98% cpu 0.824 total ```
* | | Merge pull request #3153 from xavfernandez/error_project_name_mismatchXavier Fernandez2015-10-053-1/+28
|\ \ \ | | | | | | | | Abort installation on metadata mismatch
| * | | Update changelog for backward incompatibilityXavier Fernandez2015-10-011-3/+4
| | | |
| * | | Abort installation on metadata mismatchXavier Fernandez2015-10-013-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | If setup.py egg_info produces metadata for a different project name than self.req.project_name, abort the installation. Fixes #3143
* | | | Merge pull request #3163 from dstufft/invert-osx-priorityDonald Stufft2015-10-051-3/+3
|\ \ \ \ | | | | | | | | | | Invert osx priority
| * | | | Prefer a newer SDK over an older SDKDonald Stufft2015-10-051-1/+1
| | | | |
| * | | | prefer fat64 wheels over fat32 wheelsDonald Stufft2015-10-051-2/+2
| | | | |
| * | | | fat32 not fat3Donald Stufft2015-10-051-1/+1
|/ / / /
* | | | Merge pull request #3125 from qwcode/req_line_numbersMarcus Smith2015-10-044-46/+162
|\ \ \ \ | | |_|/ | |/| | refactor to preserve reporting of original line numbers in requirements files
| * | | update changelogMarcus Smith2015-10-041-0/+3
| | | |
| * | | add comment about the order of requirements file preprocessingMarcus Smith2015-10-031-0/+2
| | | |
| * | | migrate over some missing test cases from PR #3030Marcus Smith2015-10-031-16/+32
| | | |
| * | | Merge remote-tracking branch 'pypa/develop' into req_line_numbersMarcus Smith2015-10-0332-88/+190
| |\ \ \ | |/ / / |/| | |
* | | | Merge pull request #3154 from qwcode/issue_3011Marcus Smith2015-10-033-1/+37
|\ \ \ \ | | | | | | | | | | when uninstalling, look for the case of paths containing symlinked directories
| * \ \ \ Merge remote-tracking branch 'pypa/develop' into issue_3011Marcus Smith2015-10-0327-67/+142
| |\ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Conflicts: CHANGES.txt
* | | | | Merge pull request #3158 from graingert/patch-2Matt Iversen2015-10-021-1/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | Use the new wheel config section
| * | | | Use the new wheel config sectionThomas Grainger2015-10-021-1/+1
|/ / / /
* | | | Merge pull request #3156 from dstufft/drop-32Donald Stufft2015-10-0112-39/+21
|\ \ \ \ | | | | | | | | | | Drop support for Python 3.2
| * | | | Drop support for Python 3.2Donald Stufft2015-10-0112-39/+21
|/ / / /
* | | | Merge pull request #3152 from James-Firth/patch-1Marcus Smith2015-09-301-1/+1
|\ \ \ \ | | | | | | | | | | Fixed broken link to article comparing setup.py to requirements.txt (remade)
| * | | | Fixed broken link to article comparing setup.py to requirements.txtJames Firth2015-09-301-1/+1
| | | | |
* | | | | Merge pull request #3122 from Ivoz/distinfo-entrypointsMatt Iversen2015-10-011-6/+7
|\ \ \ \ \ | | | | | | | | | | | | Show entry points for dist-info installed packages
| * | | | | Show entry points for dist-info installed packagesMatthew Iversen2015-09-211-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | Also make dist['files'] logic slightly more straight forward.
* | | | | | Merge pull request #3145 from pypa/check-long_descriptionMatt Iversen2015-10-011-2/+6
|\ \ \ \ \ \ | | | | | | | | | | | | | | Check long_description is valid
| * | | | | | Check long_description is validcheck-long_descriptionMatt Iversen2015-09-281-2/+6
| | | | | | |
* | | | | | | Merge pull request #3136 from rouge8/fix-py26-home-slashXavier Fernandez2015-09-2910-15/+69
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Fix user directory expansion when HOME=/
| * | | | | | | Add pip.compat.expanduser to workaround http://bugs.python.org/issue14768Andy Freeland2015-09-298-27/+42
| | | | | | | |
| * | | | | | | Fix user directory expansion when HOME=/Andy Freeland2015-09-292-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On versions of CPython affected by <http://bugs.python.org/issue14768> (Python 2.6, some versions of Python 2.7 and 3.3), `os.path.expanduser('~/path')` returns `//path` rather than `/path` when `HOME=/`. This affects pip when `os.path.expanduser('~/.cache/pip')` is expanded to `/\\\\.cache/pip`. Although `HOME=/` is probably uncommon on most Linux systems, it is extremely common in Docker images. Fixes #2996.
| * | | | | | | Failing test case for #2996Andy Freeland2015-09-291-0/+24
| | | | | | | |