salt icon indicating copy to clipboard operation
salt copied to clipboard

pip --editable doesn't work in states

Open djs52 opened this issue 13 years ago • 4 comments

I want to install a python package from git. I'm using a state that looks like this:

pyzotero:
  pip.installed:
    - env: /opt/zotero-venv/bin/pip
    - editable: git+https://github.com/urschrei/pyzotero.git#egg=pyzotero
    - require:
      - virtualenv: /opt/zotero-venv
      - pkg: git-core
      - pip: feedparser

The pip state module passes the name to the pip module as a package to install. Usually this is right. In this case, it means that pip is asked to install the same package in two different ways:

    State: - pip
    Name:      pyzotero
    Function:  installed
        Result:    False
        Comment:   Failed to install package pyzotero. Error: Double requirement given: pyzotero from git+https://github.com/urschrei/pyzotero.git#egg=pyzotero (aready in pyzotero, name='pyzotero')
Storing complete log in /mnt/users/general/users/djs-admin/.pip/pip.log 
        Changes:   

djs52 avatar Jan 16 '13 16:01 djs52

I thought we got this one, what salt version are you running?

thatch45 avatar Jan 16 '13 17:01 thatch45

Sorry, that was a slightly crap bug report. Running 0.11.1 on Ubuntu.

I've just tried latest git (0.12.0-6-gec94e8f) with the same result.

djs52 avatar Jan 16 '13 18:01 djs52

no worries, thanks for the update!

thatch45 avatar Jan 16 '13 18:01 thatch45

3b00590c9b8e6e9959cd8a5ba3c7faefe385c525 Fixed, not a hard fix, thanks for the report!

thatch45 avatar Feb 02 '13 05:02 thatch45