Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Bug: python_pip reinstalls packages that contain underscore in their names #91

Closed

Description

@hltbra

The current check for installed packages uses pip freeze | grep -i '^#{new_resource.package_name}==', but pip freeze reports packages with underscore as hyphens: https://github.com/pypa/pip/blob/95035fc5c4cae354e17048c1a7727f4ad766662c/pip/util.py#L186

This issue is very serious to my current work, because I rely on pip_python's updated_by_last_action value to notify supervisor to restart, and my supervisor processes were restarting every time chef runs, even if the package was already installed. My cookbook looks like:

python_pip pkg_name do
  version pkg_version
  action :install
  virtualenv venv_home
  notifies :run, "execute[supervisor:update_and_restart]"
end

I am working on a fix and gonna send a pull request soon.

Activity

  1. added a commit that references this issue on Feb 25, 2014
    574ad93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy