Cannot install contrib plugins with pip
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Heat |
Fix Released
|
Medium
|
Miguel Grinberg |
Bug Description
The plugins in the contrib directory fail to install when using pip. Example session:
# git clone https:/
# cd heat/contrib/
# pip install .
Ignoring indexes: https:/
Unpacking /opt/heat/
Running setup.py (path:/
ERROR:
Traceback (most recent call last):
File "/usr/local/
attrs = util.cfg_
File "/usr/local/
File "/usr/local/
File "/usr/local/
self.hook()
File "/usr/local/
File "/usr/local/
raise Exception(
Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
error in setup command: Error parsing /tmp/pip-
The problem is that these contrib packages do not have a version declared in setup.py. The pbr package usually is able to determine the package version from git tags when an explicit version is not given, but that mechanism does not work for sub-packages when they are installed with pip, because pip moves the files to a build directory (usually under /tmp) before starting the installation. Note in the console session above that the installation is from /tmp/pip-
For top-level packages this move to /tmp does not cause problems for pbr because the .git directory is moved along with the rest of the files, so git can still be used to obtain the tag name.
Changed in heat: | |
assignee: | nobody → Miguel Grinberg (miguelgrinberg) |
Changed in heat: | |
importance: | Undecided → Medium |
milestone: | none → kilo-rc1 |
Changed in heat: | |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | kilo-rc1 → 2015.1.0 |
Fix proposed to branch: master /review. openstack. org/162311
Review: https:/