pip --editable doesn't work in states
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:
I thought we got this one, what salt version are you running?
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.
no worries, thanks for the update!
3b00590c9b8e6e9959cd8a5ba3c7faefe385c525 Fixed, not a hard fix, thanks for the report!