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

155 commits

Author SHA1 Message Date
Thomas Kluyver 094b44191a Python 2.6 is no longer supported :-)
Also corrected a comment
2017-04-01 19:29:47 +01:00
Thomas Kluyver a8cdd4ab7f Fix thinko 2017-04-01 19:29:47 +01:00
Thomas Kluyver cfbc4d9fea Use no_clean option for wheel build environment 2017-04-01 19:29:47 +01:00
Thomas Kluyver ea108f834b Use pip.__main__ to invoke pip on Python 2.6 2017-04-01 19:29:47 +01:00
Thomas Kluyver b170957301 Disable isolation so packages can use setuptools 2017-04-01 19:29:47 +01:00
Thomas Kluyver d0a9b4bc69 Make import local to avoid circular import 2017-04-01 19:29:47 +01:00
Thomas Kluyver 3a68e97aeb Wrap each build req in an InstallRequirement 2017-04-01 19:29:47 +01:00
Thomas Kluyver 8a9d0493e7 Use finder to find build deps to install 2017-04-01 19:29:47 +01:00
Thomas Kluyver 397066bd6a Correct install command for build deps 2017-04-01 19:29:47 +01:00
Thomas Kluyver 191d68001e Let's see if that keeps PEP8 happy
If anything, the indentation changes make the code less readable. But
the hobgoblin says this is the right way to do it...
2017-04-01 19:29:47 +01:00
Thomas Kluyver 32eebbfaf9 Compatibility fallback for absent sysconfig module on Python 2.6 2017-04-01 19:29:47 +01:00
Thomas Kluyver 3da2cef247 Hopefully satisfy pep8 2017-04-01 19:29:47 +01:00
Thomas Kluyver 92bfdf702f Isolate wheel builds when using PEP 518 build dependencies 2017-04-01 19:29:47 +01:00
Thomas Kluyver b31c87f1df Install build requirements for projects using PEP 518 2017-04-01 19:29:47 +01:00
Thomas Kluyver 779bbaa328 Temporary prefix for installing build dependencies 2017-04-01 19:29:47 +01:00
Vincent Philippon 8378567b61 Install wheel with a non-PEP 440 version in the filename.
PEP 427 has no specific requirements for the format of the version.
As pip wheel allows to create a wheel with a non-PEP 440 version,
it should also be able to install that same wheel.
2017-03-27 23:12:42 -04:00
Ville Skyttä cee7a53712 Python 3.6 invalid escape sequence deprecation fixes 2017-03-20 13:54:29 +01:00
Donald Stufft 0708de5b34 Misc syntax updates 2017-03-18 14:52:14 -04:00
Xavier Fernandez b559221ee1 Move uninstall file selection logic to req_uninstall.py 2016-11-20 13:04:14 +01:00
Francesco Montesano d64b871d97 Allow pip install with entrypoint names with colons (#3901) 2016-11-19 00:27:16 +01:00
Donald Stufft 2743edcc77 Use the canonicalize_name function for finding .dist-info (#3794) 2016-10-30 11:42:14 -04:00
Ofekmeister ad3b972f0a Fix issue #3233
Made ending 'w' on generated entry points optional as they rarely, if
ever, will end in one.
2016-08-18 22:42:27 -04:00
Jakub Wilk 6dc28c1b31 Fix typos 2016-06-10 21:29:43 +02:00
Stéphane Bidoul (ACSONE) 4d1b798465 Allow creating wheels for editable packages (#3695) 2016-05-26 06:41:01 -04:00
Ville Skyttä 46582e5ab6 Use logger.warning instead of deprecated logger.warn 2016-04-15 16:30:28 +03:00
Paul Moore 1d3a7b473a Add more detail to the 'Multiple .dist-info directories' error 2016-04-11 11:16:06 +01:00
Donald Stufft 8e236dd6a0 Update to use the Requirement class from packaging 2016-03-07 11:40:39 +11:00
Donald Stufft b8e2f7b55a Use packaging 16.2's canonicalize_name function 2016-02-17 21:03:24 -05:00
Stéphane Bidoul 3f4a796ff8 make pip wheel work with vcs urls having the subdirectory option 2016-02-08 16:42:57 +01:00
stonebig 6716d906b3 simplify to assume Py2.6 and pypy 2016-02-02 22:00:45 +01:00
stonebig 64c5a11170 pep 8 2016-02-02 21:32:27 +01:00
stonebig feb135011e pep 8 2016-02-02 21:22:17 +01:00
stonebig 8de0f2a31a write only relative path in 'RECORD'
RECORD now contains only relative path.
some bugs triggered by a bleeding edge usage of python may disappear a result (https://github.com/pypa/pip/issues/3433)
2016-02-02 21:09:21 +01:00
Donald Stufft 3b3978b994 Merge pull request #3284 from ncoghlan/pep376-installer-file
Record pip in INSTALLER file
2016-01-19 10:41:08 -05:00
Jeff Barber 24a5cc6a42 Fix for issue #2834 with test 2016-01-03 17:38:36 -05:00
Nick Coghlan a925c88ed6 Record pip in INSTALLER file 2015-12-04 19:22:19 +10:00
Xavier Fernandez 30f4af0678 Move SETUPTOOLS_SHIM to its own file 2015-11-26 22:36:59 +01:00
Xavier Fernandez 3c00710438 Use a single setuptools shim
for all setup.py invocations
bdist_wheel will now use tokenize in Python 3 just like for install
fixes #2042
2015-11-26 22:36:59 +01:00
Marcus Smith ca47dc9949 Merge pull request #3252 from domenkozar/install/prefix
Support pip install --prefix
2015-11-26 09:30:20 -08:00
Domen Kožar e14a66f1b9 Support --prefix argument to install command.
There was no way to override prefix for an installation for wheels
previously. The default it whatever sys.prefix points to.
2015-11-22 19:13:51 +01:00
Donald Stufft f39bc756e5 Merge branch 'develop' into hashes2 2015-11-06 18:46:09 -05:00
Nathaniel J. Smith 5bb9899938 Display spinner during long setup.py calls
One of the downsides of pip's new hiding of build chatter is that for
packages that take a very long time to build (e.g. scipy) the user gets
no indication that anything is happening for a very long time (e.g. tens
of minutes), and is likely to get frustrated and hit Control-C. This can
also create issues for automated systems that kill jobs that don't
produce occasional output (e.g. Travis-CI).

This commit implements an idea discussed here:

  https://github.com/pypa/pip/issues/2732#issuecomment-153215371

where we put up a spinner that rotates whenever the underlying build
produces output. I tried it on scipy, and it the experience was quite
pleasant! It spun around, sometimes fast and sometimes slow, and then
there was one uncomfortable pause for ~1 minute while a very gnarly C++
file got compiled, but that's okay because it was actually providing
accurate feedback.

It looks like:
```
  Running setup.py install for scipy ... /
  Running setup.py install for scipy ... -
  Running setup.py install for scipy ... \
  Running setup.py install for scipy ... done
```
or if the command has non-zero return code, or an exception is raised,
you get:
```
  Running setup.py install for scipy ... /
  Running setup.py install for scipy ... -
  Running setup.py install for scipy ... \
  Running setup.py install for scipy ... error
```
2015-11-05 23:28:03 -08: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
Erik Rose 622b430491 Typos and docstrings 2015-10-19 23:40:00 -04:00
Erik Rose be6dccb034 Factor up the idiom of reading chunks from a file until EOF. 2015-10-12 13:07:53 -04:00
Andy Freeland 73a439ea66 Add pip.compat.expanduser to workaround http://bugs.python.org/issue14768 2015-09-29 16:01:32 -04:00
Paul Moore 908d07734c Merge pull request #3047 from tgs/clean_wheel_build_dir
Clean build dir if bdist_wheel fails
2015-09-29 09:19:39 +01: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
Thomas Smith 7f58c07a25 Clean build dir if bdist_wheel fails
When pip tries to build a wheel but fails, setup.py install is run in
the same directory.  However, some build files are not compatible
between 'install' and 'bdist_wheel', particularly scripts - the shebang
lines are different.  Pip now cleans the build dir after a failed
bdist_wheel so that pip doesn't install broken scripts.

Closes #3006
2015-09-09 15:16:51 -04:00
Xavier Fernandez c73b1f9fd5 rename to canonicalize_name 2015-09-08 00:18:54 +02:00