Project

General

Profile

Actions

Bug #11598

closed

ceph-detect-init does not make install

Added by Loïc Dachary almost 9 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

With the recent ceph-detect-init changes, make install now fails (
make succeeds hence this is not detected by build bots )

Error:
cd ceph-detect-init ; \
if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \
options=--install-layout=deb ; \
else \
options=--prefix=/usr ; \
fi ; \
python setup.py install --root= $options
running install
Checking .pth file support in usr/lib/python2.7/dist-packages/
/usr/bin/python -E -c pass
TEST FAILED: usr/lib/python2.7/dist-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
    usr/lib/python2.7/dist-packages
and your PYTHONPATH environment variable currently contains:
    '../src/pybind'

Here are some of your options for correcting the problem:

  • You can choose a different installation directory, i.e., one that is on PYTHONPATH or supports .pth files
  • You can add the installation directory to the PYTHONPATH environment variable. (It must then also be on PYTHONPATH whenever you run Python and want to use the package(s) you are installing.)
  • You can set up the installation directory to support ".pth" files by using one of the approaches described here: https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations
Actions #1

Updated by Loïc Dachary almost 9 years ago

  • Status changed from 12 to In Progress
  • Priority changed from Normal to Urgent
Actions #2

Updated by Loïc Dachary almost 9 years ago

  • Description updated (diff)
Actions #3

Updated by Loïc Dachary almost 9 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Loïc Dachary almost 9 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF