nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 395 forks source link

man page install location #483

Open jpellerin opened 12 years ago

jpellerin commented 12 years ago

setup.py wants to put the man page in ${PREFIX}/man/man1, but that's only right some of the time. We need to figure out how to find the man prefix for the target system and use that to set data_files correctly -- or something like that.

lenolib commented 8 years ago

This is an annoying issue, which appears to break stuff in the wild, such as https://github.com/OpenBazaar/OpenBazaar-Server/issues/325 There exists another issue about the same thing which was closed, with more details; https://github.com/nose-devs/nose/issues/731 related rejected PR: https://github.com/nose-devs/nose/pull/765 The following Dockerfile currently fails:

FROM ubuntu:14.04  # fail on debian:wheezy as well
RUN apt-get update && apt-get install python-pip
RUN pip install --upgrade pip
RUN pip install nose==1.3.6
RUN pip install nose==1.3.7
...
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 2] No such file or directory: '/usr/local/man/man1'

pip uninstalling twice (for whatever necessary reason) also seems to work (allows upgrade).

CRImier commented 7 years ago

Affected by this on latest Raspbian Jessie, had to create the /usr/local/share/man directory (don't need mans, just needed it to work here and now). Maybe at least temporarily work around this issue if the file is not found, until the prefix can be figured out?