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

141 commits

Author SHA1 Message Date
Robert Collins
582af6e684 Issue #2677: Disable wheels for setup.py options.
Using --install-options, --build-options, --global-options changes
the way that setup.py behaves, and isn't honoured by the wheel code.
The new wheel autobuilding code made this very obvious - disable
the use of wheels when these options are supplied.
2015-04-24 16:14:48 +12:00
Robert Collins
6aec23cafe Issue #2675: Granular control over wheels/sdists
With wheel autobuilding in place a release blocker is some granular
way to opt-out of wheels for known-bad packages. This patch introduces
two new options: --no-binary and --only-binary to control what
archives we are willing to use on both a global and per-package basis.

This also closes #2084
2015-04-24 08:52:48 +12:00
Robert Collins
ec46a3bac4 Replace wheel cache cache_dir with an object.
Wheel cache lookups become more complex when we wish to allow binary
blacklisting. Rather than passing more parameters around, replace
cache_root with wheel_cache, and create a wheel cache in all the
relevant command entry points.
2015-04-23 10:03:50 +12:00
Robert Collins
0e57ebc008 Make adding options be just function calls.
The .make is just sugar for 'call a function' that gets in the way of
just having functions.
2015-04-17 15:04:25 +12:00
Robert Collins
08acb6670d Issue #2140: Build wheels automatically
Building wheels before installing elminates a cause of broken environments -
where install fails after we've already installed one or more packages.

If a package fails to wheel, we run setup.py install as normally.
2015-04-13 18:33:07 +12:00
Robert Collins
4926409340 Issue #2563: Read cached wheels from ~/.cache/pip
This won't put wheels into that directory, but will read them if they
are there. --no-cache-dir will disable reading such wheels.
2015-04-13 18:33:07 +12:00
Robert Collins
12e719db78 Create ensure_dir helper.
We had a very widely used pattern which can be factored out for a mild
saving in LOC, and a gain in clarity.
2015-04-07 08:55:52 -04:00
Donald Stufft
f41fee6a21 Reduce duplicate code in wheel and install commands.
(cherry picked from commit 9ed1dd75fc1d2c7a747066a90cd897db441319e0)
2015-04-07 08:36:14 -04:00
Donald Stufft
b7309c6bcc Remove the items deprecated for removal in 7.0 2015-04-07 04:20:51 -04:00
Robert Collins
ff33e17046 Document locate_files removal plan. 2015-03-19 15:05:22 +13:00
Joseph Long
176d0c5fee Fixes #2483: pip install --user option un(der)documented 2015-03-05 13:39:14 -05:00
Donald Stufft
0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Donald Stufft
461d59f41e Check for --no-install before --download forces it to be set 2015-02-04 14:30:37 -05:00
Marc Abramowitz
8e2d441dab Displays info about [un]installed versions
Displays version when installing and uninstalling -- e.g.:

    Successfully installed pyrepl-0.8.4 pytest-2.6.4

and:

    Uninstalling pyrepl-0.8.4:
      Successfully uninstalled pyrepl-0.8.4
    Uninstalling pytest-2.6.4:
      Successfully uninstalled pytest-2.6.4
2014-12-18 17:18:46 -08:00
Donald Stufft
5b817f960b --isolated should isolate from ~/.pydistutils.cfg as well 2014-12-11 11:51:06 -05:00
Donald Stufft
ddb2f1b459 Deprecate accessing non secure origins by default
* Deprecates accessing non secure origins by default, the list of
  which is taken from Chrome.
* Adds a --trusted-host flag to enable users to mark a specific
  host as a secure origin regardless of what we think.
* Refactors the original warning to better indicate the intent
  and the new flag.
2014-12-10 16:35:54 -05:00
Donald Stufft
01610be0d5 Use a secure randomized build directory when possible 2014-11-11 20:19:10 -05:00
Paul Moore
7bc51305a7 Clarification of pip install -U help 2014-10-17 14:50:44 +01:00
Marcus Smith
40bdaa75aa reverse the deprecation of --build and --no-clean 2014-09-25 22:03:58 -04:00
Donald Stufft
0e96b1af4b Switch versioning from X.Y.Z to X.Y dropping the leading 1 2014-09-17 22:05:31 -04:00
Donald Stufft
ae5e9b45a9 Update logging calls to the match the stdlib logging 2014-09-11 09:07:40 -04:00
Paul Moore
f6b0665553 Merge pull request #2007 from jonparrott/develop
Fixing issues with install's --target option.
2014-09-11 14:04:26 +01:00
Donald Stufft
767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Jon Wayne Parrott
ecb3049b8d Covering case of single-module packages.
Behavior is now to overwrite files or folders if --upgrade is specified, however, links will not be overwritten.
2014-08-31 12:11:27 -04:00
Jon Wayne Parrott
12ff251d2d Fixing pep8 errors 2014-08-30 21:25:03 -04:00
Jon Wayne Parrott
acf8634e8f Fixing issues with install's --target option.
1. Check for the existence of a directory before copying from temporary directory to final target. If it exists, warn the user.
 2. If the user specifies the --upgrade option and the directory exists, delete it and continue with installation.
 3. Adding tests for above cases.

This resolves #1489, #1710 completely and parts of #1833.
2014-08-30 20:21:08 -04:00
Donald Stufft
e7c08b04d6 Merge pull request #1815 from pcx/develop
update help to make Package Index Options' usage clearer, ref #1814
2014-08-30 14:50:41 -04:00
Donald Stufft
90688e82b1 Revert "Merge pull request #1519 from dstufft/remove-dependency-links"
This reverts commit da02f073da, reversing
changes made to 2ad8888901.

Conflicts:
	CHANGES.txt
	pip/commands/freeze.py
	pip/commands/list.py
	pip/commands/wheel.py
	pip/index.py
	pip/req/req_set.py
	pip/vcs/subversion.py
2014-08-01 16:50:08 -04:00
Donald Stufft
2298e4ce53 Fix #1657 - Explicitly close the requests session 2014-07-03 12:50:59 -04:00
Phaneendra Chiruvella
25db84ad8c update help to make Package Index Options' usage clearer, ref #1814 2014-05-12 20:19:06 +05:30
Donald Stufft
52ca02608e Use CacheControl instead of custom cache code
* Deprecates the --download-cache option & removes the download
  cache code.
* Removes the in memory page cache on the index
* Uses CacheControl to cache all cacheable HTTP requests to the
  filesystem.
  * Properly handles CacheControl headers for unconditional
    caching.
  * Will use ETag and Last-Modified headers to attempt to do a
    conditional HTTP request to speed up cache misses and turn
    them into cache hits.
  * Removes some concurrency unsafe code in the download cache
    accesses.
  * Uses a Cache-Control request header to limit the maximum
    length of time a cache is valid for.
* Adds pip.appdirs to handle platform specific application
  directories such as cache, config, data, etc.
2014-05-09 18:28:20 -04:00
Marcus Smith
b0b05737a9 Merge pull request #1787 from qwcode/wheel_editables
build wheels for dependencies of editables
2014-05-09 15:00:50 -07:00
Marcus Smith
52299a7fe7 pip wheel needs --src option if it's going support --editable for vcs reqs 2014-05-08 21:29:01 -07:00
Donald Stufft
f79ca70c66 Remove the bundle functionality from pip 2014-05-08 16:09:23 -04:00
Marcus Smith
12034176a1 build wheels for dependencies of editables 2014-05-03 10:12:57 -07:00
Donald Stufft
95ac4c16f5 Remove dependency links support from pip 2014-02-25 18:39:40 -05:00
Donald Stufft
95035fc5c4 Turn on everything in flake8
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05:00
Donald Stufft
c8d9368e71 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	pip/__init__.py
2014-02-21 07:18:52 -05:00
Donald Stufft
313b8d9f7d Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-02-21 07:10:46 -05:00
Marcus Smith
1a0e8fad4c log deprecation for --build when value is different than default 2014-02-20 22:37:35 -08:00
Marcus Smith
a3f6ec7b5f can't log deprecation for --build, since it's set always 2014-02-20 22:22:25 -08:00
Donald Stufft
751eec65f3 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	docs/configuration.rst
	docs/cookbook.rst
	docs/reference/pip.rst
	docs/usage.rst
	pip/__init__.py
	pip/commands/install.py
	pip/commands/wheel.py
	pip/req.py
	pip/wheel.py
	tests/unit/test_wheel.py
2014-02-20 20:33:59 -05:00
Donald Stufft
3435cf36eb Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-02-20 19:36:56 -05:00
Marcus Smith
c6356c855f deprecate --build and --no-clean 2014-02-16 12:30:49 -08:00
Marcus Smith
9e39d9d8ca pip docs refactor 2014-02-11 22:13:03 -08:00
Marcus Smith
96bfe8b0f9 pip docs refactor 2014-02-11 21:55:43 -08:00
Donald Stufft
2743768b7b Fix the style of the code base to better match pep8 2014-01-27 14:11:29 -05:00
Marcus Smith
5b1c5f45c6 use Logger.deprecated for deprecation warnings 2014-01-10 20:59:24 -08:00
Marcus Smith
4afe71fe47 consistent deprecation messages 2014-01-09 20:28:28 -08:00
Marcus Smith
48f8c0a18e deprecate --no-install and --no-download 2013-11-24 18:21:00 -08:00