1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

4237 commits

Author SHA1 Message Date
Xavier Fernandez f1bf7515c2 pip.index: remove INSTALLED_VERSION
closes #703
2015-11-04 22:52:44 +01:00
Donald Stufft 28f658f908 Merge pull request #3225 from pypa/force-implementation-tag
Force the --python-tag when autobuilding wheels
2015-11-04 13:05:08 -05:00
Donald Stufft 0e240d7dde Force the --python-tag when autobuilding wheels
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.
2015-11-04 08:52:28 -05:00
Xavier Fernandez 4bc2480e85 Merge pull request #3205 from xavfernandez/traceback_format_exc
Fix traceback.format_exc call
2015-10-24 00:58:04 +02:00
Xavier Fernandez 0cc9d733bf Fix traceback.format_exc call
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
2015-10-24 00:46:44 +02:00
Xavier Fernandez f23cbb707f Merge pull request #3179 from cloudnull/fix/req_constraint
Resolves result obj in req_constraints
2015-10-23 18:04:54 +02:00
Kevin Carter 6c50ea5781
Fix to ensure "result" object is defined
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>
2015-10-23 10:20:06 -05:00
Xavier Fernandez 3148b967a2 Merge pull request #3196 from xavfernandez/improve_missing_setuptools_error
Report import setuptools error to the user
2015-10-22 23:38:04 +02:00
Xavier Fernandez fa91e3dcf4 Use get_installed_version and traceback 2015-10-22 23:15:06 +02:00
Xavier Fernandez 89a27cd740 Special-case based on exception message 2015-10-22 23:15:02 +02:00
Xavier Fernandez 8cbb8af466 Report import setuptools error to the user
closes #2931
2015-10-19 16:43:01 +02:00
Marcus Smith 829b6c2f06 Merge pull request #3190 from cjwatson/setuptools-find-links-docs
Fix example of using setuptools find_links
2015-10-15 22:18:55 -07:00
Colin Watson 4a67f40a41 Fix example of using setuptools find_links
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.
2015-10-16 05:20:03 +01:00
Donald Stufft 461b7aaad3 Merge pull request #3075 from natefoo/py2-soabi
SOABI support for Python 2.X and PyPy
2015-10-14 17:59:01 -04:00
Nate Coraor 63d239ffac 1. Provide a fallback mechanism for determining ABI flags if config vars
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.
2015-10-13 15:58:03 -04:00
Nate Coraor 1b5b4ac9f7 Add unit tests for manual SOABI detection 2015-10-13 10:38:07 -04:00
Nate Coraor a55fa5a17e Setting the u ABI flag based on sys.maxunicode is incorrect on recent
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.
2015-10-13 10:38:07 -04:00
Nate Coraor 62e265e8b4 Use the WITH_PYMALLOC and Py_DEBUG config vars for setting the m and d ABI
flags.
2015-10-13 10:38:07 -04:00
Nate Coraor a70e1dd544 Fix unit tests I broke:
- Catch IOError wherever sysconfig is used (#1074)
- Reapply #2915

Also, be sure to normalize the SOABI
2015-10-13 10:38:07 -04:00
Nate Coraor 0b9afeaca4 SOABI support for Python 2.X and PyPy
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.
2015-10-13 10:38:07 -04:00
Marcus Smith 13d43e3af8 Merge pull request #3170 from qwcode/req_line_numbers2
update for processing continuations/comments for req files
2015-10-09 07:48:28 -07:00
Marcus Smith b58d2c9f34 process line continuations first (but with some special handling for comments) 2015-10-08 15:25:51 -07:00
Donald Stufft 9b29884fe9 Merge pull request #3066 from mattrobenolt/update-2
Only update VCS when things have actually changed
2015-10-08 16:26:18 -04:00
Xavier Fernandez 6aab626e7d Merge pull request #3153 from xavfernandez/error_project_name_mismatch
Abort installation on metadata mismatch
2015-10-05 23:54:09 +02:00
Donald Stufft db2b2d30eb Merge pull request #3163 from dstufft/invert-osx-priority
Invert osx priority
2015-10-05 15:22:54 -04:00
Donald Stufft 9c543b21c6 Prefer a newer SDK over an older SDK 2015-10-05 14:53:14 -04:00
Donald Stufft ea5459294d prefer fat64 wheels over fat32 wheels 2015-10-05 14:52:53 -04:00
Donald Stufft 005e4a4fa6 fat32 not fat3 2015-10-05 14:52:19 -04:00
Marcus Smith 0e870a7b6a Merge pull request #3125 from qwcode/req_line_numbers
refactor to preserve reporting of original line numbers in requirements files
2015-10-04 21:26:51 -07:00
Marcus Smith 4929078946 update changelog 2015-10-04 21:25:53 -07:00
Marcus Smith b9095440c9 add comment about the order of requirements file preprocessing 2015-10-03 21:30:26 -07:00
Marcus Smith 91e3c13926 migrate over some missing test cases from PR #3030 2015-10-03 21:08:35 -07:00
Marcus Smith 03de1c0072 Merge remote-tracking branch 'pypa/develop' into req_line_numbers 2015-10-03 20:44:21 -07:00
Marcus Smith 55a3ea8276 Merge pull request #3154 from qwcode/issue_3011
when uninstalling, look for the case of paths containing symlinked directories
2015-10-03 10:32:28 -07:00
Marcus Smith 615adf9468 Merge remote-tracking branch 'pypa/develop' into issue_3011
Conflicts:
	CHANGES.txt
2015-10-03 10:21:15 -07:00
Marcus Smith 5dc95b392e update changelog 2015-10-03 10:16:54 -07:00
Marcus Smith 5f3437bd0f normcase the path tail for uninstall items 2015-10-03 10:13:00 -07:00
Marcus Smith 0d8933ced6 normalize the head to resolve parent directory symlinks, but not the tail 2015-10-03 09:17:26 -07:00
Matt Iversen 0044f41781 Merge pull request #3158 from graingert/patch-2
Use the new wheel config section
2015-10-02 10:54:49 +10:00
Thomas Grainger a4d63a60d4 Use the new wheel config section 2015-10-02 01:26:59 +01:00
Xavier Fernandez 7e02e5c4f8 Update changelog for backward incompatibility 2015-10-01 23:41:40 +02:00
Xavier Fernandez 1a012bb63b Abort installation on metadata mismatch
If setup.py egg_info produces metadata for a different project name than
self.req.project_name, abort the installation.
Fixes #3143
2015-10-01 23:40:27 +02:00
Donald Stufft 5a15cbb0d8 Merge pull request #3156 from dstufft/drop-32
Drop support for Python 3.2
2015-10-01 14:43:40 -04:00
Donald Stufft b11cb019a4 Drop support for Python 3.2 2015-10-01 09:36:16 -04:00
Marcus Smith a4f7bc62c2 Merge pull request #3152 from James-Firth/patch-1
Fixed broken link to article comparing setup.py to requirements.txt (remade)
2015-09-30 12:11:10 -07:00
James Firth fa4be0f53d Fixed broken link to article comparing setup.py to requirements.txt 2015-09-30 11:32:24 -05:00
Matt Iversen f66d95ea89 Merge pull request #3122 from Ivoz/distinfo-entrypoints
Show entry points for dist-info installed packages
2015-10-01 02:01:14 +10:00
Matt Iversen 2b703d68e8 Merge pull request #3145 from pypa/check-long_description
Check long_description is valid
2015-10-01 02:00:01 +10:00
Xavier Fernandez fe28652e63 Merge pull request #3136 from rouge8/fix-py26-home-slash
Fix user directory expansion when HOME=/
2015-09-29 22:18:24 +02:00
Andy Freeland 73a439ea66 Add pip.compat.expanduser to workaround http://bugs.python.org/issue14768 2015-09-29 16:01:32 -04:00