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

1715 commits

Author SHA1 Message Date
Xavier Fernandez
ee3c2b0034 InstallRequirement: fix attribute name 2015-09-11 17:23:17 +02:00
Xavier Fernandez
d6f9bbf463 Raise an exception on invalid script entry points
(only for wheel installs)
closes #2998 and #3086
2015-09-09 23:09:01 +02:00
Donald Stufft
bd863d7c6e Merge pull request #3080 from xavfernandez/normalize_names
Add a canonicalize_name util function
2015-09-08 16:56:34 -04:00
Xavier Fernandez
c73b1f9fd5 rename to canonicalize_name 2015-09-08 00:18:54 +02:00
Xavier Fernandez
414c2d62fd supplied name does not need to be normalized 2015-09-06 19:20:17 +02:00
Xavier Fernandez
2ff59d1cc0 Add canonical utils function 2015-09-06 19:20:14 +02:00
Xavier Fernandez
b290e13cfa Allow --pre option in requirement files
closes #1273
2015-09-05 23:13:03 +02:00
Xavier Fernandez
a9325b0727 Allow --process-dependency-links in req files
closes #1274
2015-09-05 20:19:30 +02:00
Xavier Fernandez
a7634cb623 Merge pull request #3007 from xavfernandez/trusted_host_in_req_file
Allow --trusted-host option in requirement files
2015-09-05 20:10:24 +02:00
Xavier Fernandez
8c67bccb2c Remove now useless code
since a23a65cee4
2015-09-04 23:24:08 +02:00
Xavier Fernandez
7d596224cd Improve some PackageFinder methods' docstrings 2015-09-04 22:36:32 +02:00
Xavier Fernandez
9c43dbcac4 Merge pull request #3035 from arindamchoudhury/patch-1
Update PackageFinder.find_requirement docstring
2015-09-04 22:19:08 +02:00
Xavier Fernandez
e168b845a4 Allow --trusted-host option in requirement files
closes #2822
2015-09-03 22:33:31 +02:00
Donald Stufft
a23a65cee4 Merge pull request #3073 from dstufft/remove-8-deprecations
Remove items slated for removal in pip 8.0
2015-09-03 11:10:51 -04:00
Donald Stufft
6afc718307 Remove items slated for removal in pip 8.0 2015-09-03 10:55:11 -04:00
Xavier Fernandez
f8040ab13e Use stdlib os.path.relpath
instead of custom (and now useless) make_path_relative
2015-09-03 15:38:44 +02:00
Donald Stufft
e26d930b0a PEP 470: Remove support for searching rel links 2015-09-03 01:04:06 -04:00
Donald Stufft
0f5d4286a5 Deprecate and Noop the PEP 438 functionality due to PEP 470 2015-09-02 23:47:05 -04:00
Donald Stufft
0aa65181ad bump for development 2015-08-22 18:58:01 -04:00
Donald Stufft
78daccc915 Update changelog and version 2015-08-22 18:46:55 -04:00
Donald Stufft
bee3be48ad Handle the case where pip isn't installed during the version check 2015-08-22 17:50:22 -04:00
Donald Stufft
3d245ea2d2 bump version for development 2015-08-20 18:16:49 -04:00
Donald Stufft
0214d7c669 bump for release 2015-08-20 17:10:00 -04:00
Donald Stufft
56279c0fdd bump to 7.1.1.dev0 2015-08-20 17:08:13 -04:00
Donald Stufft
9aad142153 Update setuptools version 2015-08-20 16:34:38 -04:00
Donald Stufft
3a9f33bd3d Upgrade ipaddress to 1.0.14 2015-08-20 16:33:10 -04:00
Donald Stufft
cc7f416378 Merge pull request #3037 from ianw/no-reset-platlib
Don't reset purelib/platlib when install-dir not set
2015-08-19 17:27:21 -04:00
Ian Wienand
d871bcd1bb Don't reset purelib/platlib when install-dir not set
Change 3affcaa2b8 attempts to reset
purelib & platlib to any "install-dir" specified by the user in
setup.cfg.  This code is used when we are installing wheels.

The problem with this is that distutils is *always* setting
"i.install_lib" -- even when the user specifies nothing.  This has the
result of unconditionally setting purelib == platlib.

On some systems this results in .so's from the wheel getting installed
into /usr/lib/python2.7 (purelib) rather than /usr/lib64/python
(platlib).  Because distribution-packaged libraries have installed
their .so into platlib, we can now have a situation where the new
pip-installed library is picking up an old .so from the distro package
... with predictably bad results.

This takes the approach of checking the configuration to see if the
user has overridden install-dir and only resetting the paths if they
have.  The override case is covered by existing test-cases.

Closes #2940
2015-08-19 14:56:53 +10:00
Arindam Choudhury
f9907d6e77 Update index.py 2015-08-18 15:30:58 +02:00
Donald Stufft
0027580f86 Merge pull request #2980 from xavfernandez/use_logging_exc_info
basecommand: use logging exc_info parameter
2015-08-03 16:48:54 -04:00
Xavier Fernandez
e0522c4109 Add debug log when using cached wheel
closes #3000
2015-08-02 20:10:49 +02:00
Donald Stufft
e695a66cd7 Upgrade packaging to 15.3 2015-08-01 20:11:25 -04:00
Xavier Fernandez
b0cc9da953 basecommand: use logging exc_info parameter 2015-07-16 21:21:41 +02:00
Donald Stufft
e2d98cc51a Upgrade ipaddress to 1.0.13 2015-07-15 17:01:38 -04:00
Donald Stufft
c82e79f418 Upgrade to distlib 0.2.1 2015-07-15 17:01:14 -04:00
Paulus Schoutsen
a5e06a506c Do not break built-in logging module when pip embedded in script
Fixes #2553. When a Python script embeds pip and tries to log something from a different thread, an AttributeError is raised.
2015-07-15 10:34:16 -07:00
Xavier Fernandez
0e8d5801b0 Compute pip version from its metadata
Move InstallRequirement.installed_version to a get_installed_version helper
Adapt test
2015-07-06 10:28:18 +02:00
Xavier Fernandez
7cd1586d27 Check for new pip version after run call
If a pip install --update was performed, the version check should not
find anything. Closes #2829
2015-07-03 17:09:12 +02:00
Min RK
aa0099a641 check that wheel cache dir is writable
before building wheels. Warning is copied from http cache check.

HTTP cache has a similar check and warning,
but wheels would still try and fail to build.
2015-07-02 13:10:47 -07:00
Donald Stufft
0ba95ace50 bump for development 2015-06-30 20:34:20 -04:00
Donald Stufft
d2f09e2867 Bump for release 2015-06-30 18:53:26 -04:00
Donald Stufft
40242fe4db Merge pull request #2934 from jamezpolley/user_implies_null_prefix
Ignore distutils prefix when using --user
2015-06-28 23:08:01 -04:00
James Polley
b227c45a7b Ignore distutils prefix when using --user
Fixes bug #2683

There are two changes here; one to fix the using-wheels codepath and one
to fix the no-wheels codepath. Two tests are introduced, one to test
each codepath.
2015-06-26 19:08:45 +10:00
Donald Stufft
2912910b44 Do a (slightly) less insane thing to handle debundling
Previously we attempt to do some crazy things with import hooks
in order to attempt to automatically alias normally installed
dependencies as our vendored dependencies. This turned out to be
fairly fragile, so instead we'll manually patch sys.modules to
trigger the aliasing.

As part of this, we also drop support for the
PIP_NO_VENDOR_FOR_DOWNSTREAM environment variable because it was
never fully supported and now that we have wheel caching, actually
using it could possibly trigger a bad wheel to be cached. The new
mechanism requires some light patching by downstream to opt into
the mechanism, so they can also easily remove all of the files
in pip/_vendor/ except for __init__.py.
2015-06-23 22:27:47 -04:00
Donald Stufft
0b9beab59c Merge pull request #2924 from dstufft/upgrade-setuptools
Upgrade setuptools to 18.0
2015-06-23 19:44:02 -04:00
Donald Stufft
f03ebccf33 Merge pull request #2891 from jdkx/develop
Fixed support for Jython 2.7 in wheel.py.
2015-06-23 19:14:14 -04:00
Donald Stufft
3abaac5abc Merge pull request #2743 from Carreau/importlib
imp deprecated on 3.4
2015-06-23 19:13:31 -04:00
Donald Stufft
e89e3a80a4 Upgrade setuptools to 18.0 2015-06-23 19:00:35 -04:00
Donald Stufft
c68a56dfed Merge pull request #2915 from minrk/soabi-cp35-split
get only first part of SOABI for ABI tag
2015-06-23 12:34:19 -04:00
James Polley
6d719576e8 Handle missing case from bug #2888
If a single package is listed as a constraint; is a dependency of a
package being installed; *and* is already installed, we end up
processing it multiple times. This change adds a new "prepared" flag
which we set the first time the package is processed, to prevent
multiple handling.

Fixes bug #2888
2015-06-19 15:21:02 +10:00