Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manpage install.sh step incorrectly assumes self.prefix is set #26

Open
dnwe opened this issue Dec 1, 2015 · 0 comments
Open

manpage install.sh step incorrectly assumes self.prefix is set #26

dnwe opened this issue Dec 1, 2015 · 0 comments

Comments

@dnwe
Copy link

dnwe commented Dec 1, 2015

The setup.py seems to expect self.prefix (and self.root) to never be None. However, this fails on a --user or --home install.

e.g.,

$ pip3 install --upgrade --egg --user https://github.com/simon-r/dr14_t.meter/archive/master.zip
...
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-jze75d24-build/setup.py", line 70, in <module>
    cmdclass={"install": dr14_install }
  File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/pip-jze75d24-build/setup.py", line 42, in run
    prefix = re.sub( r'^/' , '' , self.prefix )
  File "/usr/lib/python3.4/re.py", line 179, in sub
    return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or buffer

I think you should just be using self.install_data as the prefix under which to put the man files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant