| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
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
|
|\
| |
| | |
Resolves result obj in req_constraints
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| | |
| | | |
Report import setuptools error to the user
|
| | | |
|
| | | |
|
|/ /
| |
| |
| | |
closes #2931
|
|\ \
| | |
| | | |
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.
|
|\ \
| |/
|/| |
SOABI support for Python 2.X and PyPy
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
flags.
|
| |
| |
| |
| |
| |
| |
| | |
- Catch IOError wherever sysconfig is used (#1074)
- Reapply #2915
Also, be sure to normalize the SOABI
|
|/
|
|
|
|
|
|
| |
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.
|
|\
| |
| | |
update for processing continuations/comments for req files
|
| | |
|
|\ \
| | |
| | | |
Only update VCS when things have actually changed
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
```
|
|\ \ \
| | | |
| | | | |
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
|
|\ \ \ \
| | | | |
| | | | | |
Invert osx priority
|
| | | | | |
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | |_|/
| |/| | |
refactor to preserve reporting of original line numbers in requirements files
|
| | | | |
|
| | | | |
|
| | | | |
|
| |\ \ \
| |/ / /
|/| | | |
|
|\ \ \ \
| | | | |
| | | | | |
when uninstalling, look for the case of paths containing symlinked directories
|
| |\ \ \ \
| |/ / / /
|/| | | |
| | | | |
| | | | | |
Conflicts:
CHANGES.txt
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Use the new wheel config section
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Drop support for Python 3.2
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
Fixed broken link to article comparing setup.py to requirements.txt (remade)
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Show entry points for dist-info installed packages
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Also make dist['files'] logic slightly more straight forward.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Check long_description is valid
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Fix user directory expansion when HOME=/
|
| | | | | | | | |
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
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.
|
| | | | | | | | |
|