Commit Graph

29 Commits (83e14ffb6df935af55b97cd677f27aa857e04a1c)

Author SHA1 Message Date
James Tanner fc33860e5d Force command action to not be executed by the shell unless specifically enabled 11 years ago
Matthew Phipps 14fd8ec570 Remove use_mirrors from pip module
PyPI moved to a CDN on 2013-05-26, so mirrors are now largely
unnecessary and pip removed the functionality in 1.5. More importantly
(and why I wrote this request): on 2014-02-15 the mirror directory was
taken offline, so mirrors may not work anymore even for pip versions
that support them.
11 years ago
Matthew Phipps fc4c685d26 pip module wasn't adding -e when using VCS 11 years ago
Richard C Isaacson 217fc32a85 If a executable is defined but not found the module should fail. Addresses https://github.com/ansible/ansible/issues/5781. 11 years ago
James Tanner 42dab7bed8 Fixes #5601 Do not append extra args when checking for pip command options 11 years ago
James Tanner f723311601 Resolves issues with newer versions of pip not having a --use-mirrors paramater for the install command 11 years ago
James Tanner 4f9aadcc07 Addresses #5023 Fix import comments 11 years ago
James Tanner 38edad70ac Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
James Tanner 3b1854c5b2 Merge pull request #4413 from jerm/ansible
Add capability to pass in a PATH prefix to run_command and allow pip module
to utilize that to make virtualenv bin/ available in pip installs
11 years ago
James Tanner 104eaaa8e1 Addresses #4735 Verify the virtualenv command supports --no-site-packages before passing it 11 years ago
chrisalbright dbbad79299 pip module: fix unexpected behavior when creating virtualenvs
This module supports `virtualenv_site_packages` as an option to control whether or not to include system packages when installing pip packages into a virtual environment. 

The default is no, and when you say yes it explicitly it includes a flag to include site packages, otherwise it doesn't provide a flag. 

Some versions of virtualenv by default include site packages and other versions by default do not. 

This patch just makes both branches explicit, so `virtualenv_site_packages=no` really means no.
11 years ago
Thomas Omans ae6e080bd9 Pip module: fixing issue with python 2.4 support
Python 2.4.3 returns:
TypeError: expected character buffer object

startswith is expecting only a string instead of a tuple like newer versions allow.
11 years ago
Pedro Romano 1391add126 Refactor helper function '_get_pip' to handle the cases where an absolute
path explicit executable is passed to the task and to look for an explicit executable
by basename in a virtualenv if that is specified.
11 years ago
Pedro Romano 8a843e997f New module argument to specify the executable used for running 'pip'. This allows support for system installation of packages on systems with multiple installations of Python. 11 years ago
Pedro Romano ddcac647ff Changes examples from using Flask to some other package (Bottle was chosen) as per @mpdehaan's suggestion. 11 years ago
Jeremy Price 1c0707ade7 Adding the bin/ directory of the virtualenv (if you specify a virtualenv) as a path_prefix so that other programs that only exist in the virtualenv will be available to things being installed into said virtualenv. Classic example: installing gevent requires cython binary to be available, but if cython is in the virtualenv only it won't be found without this. 11 years ago
Michael DeHaan 531e290033 Merge branch 'PR_add_chdir_to_pip' of git://github.com/y-p/ansible into devel
Conflicts:
	library/packaging/pip
12 years ago
Jan-Piet Mens 3404a0fc16 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
12 years ago
y-p 613202e785 Add is_local_path check to pip module, for skipping --use-mirrors 12 years ago
y-p aa212e87ec Add chdir parameter to pip 12 years ago
Michael DeHaan 5836783181 Merge pull request #2976 from stoned/pip-virtualenv_command-pathname
Allow virtualenv_command argument of the pip module to be a pathname
12 years ago
Michael DeHaan 64779e4a0b Merge pull request #2975 from stoned/doc-pip-fix
Fix pip module documentation (YAML quoting)
12 years ago
Scott Sturdivant cc1f1368e4 Chdir to tempdir to prevent permissions problems. 12 years ago
Stoned Elipot c6712b35a2 Allow virtualenv_command argument of the pip module to be a pathname 12 years ago
Stoned Elipot 1082ba6c1c Fix pip module documentation (YAML quoting) 12 years ago
John Jarvis 008e18d1d3 fixes case where name is omitted from pip arg list
This code:
```
    if name.endswith('.tar.gz') or name.endswith('.tar.bz2') or
name.endswith('.zip'):
        is_tar = True
```
was not checking whether name is defined since it is an
optional param.
12 years ago
Yeukhon Wong 76e1e5bbe9 Pip can now accept vcs or tarball as name. Prevented adding mirrors when name is vcs.
**Summary**:

There was a bug in the previous commit; pip module would add --use-mirrors options to a source package when state is absent. The bug is resolved in this commit by checking ``not is_package`` in the if branch.

Furthermore, in order to support non-vcs source name like tarballs, we must not add -e option to the arg list. Given this circumstance, this commit have is_tar and is_vcs and the latter is checked to add -e option. Since mirrors do not make sense with vcs or tarball source, this commit will not add --use-mirrors (default to True) as always.
12 years ago
Yeukhon Wong 2c72b905a7 Pip's name key can now accept remote package address.
Summary:

Pip module would abort when name is a remote package address because
the module was expecting a version if ``=`` is part of the name value.

Furthermore, the pip module would require either name or requirement to
be a key, although the documentation table said neither was required.
The fact that one of them must be present is not documented in the
documentation leads to confusion. This commit added this fact as part
of description.

In this commit, we resolve the confusion by stating either ``name``
or ``requirement`` is needed. Next, if the user puts remote address
as the value of the ``name`` key, we will not use mirror. Lastly,
if the user uses the remote serivice address as the name of the
package and the user does not supply -e option in extra_vars
(which is the whole point of this commit), we will add -e to
 extra_vars so pip command can run with -e option.
12 years ago
Michael DeHaan cd97a4cb14 Allow modules to be categorized, and also sort them when generating the documentation. 12 years ago