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

Automatically generated man pages not integrated in build #8

Open
Cynical-Optimist opened this issue Oct 13, 2020 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Cynical-Optimist
Copy link

See original issue on GitLab
In GitLab by [Gitlab user @tristanvb] on Apr 13, 2017, 11:56

We use click_man to automatically generate man pages from our usage of click library for the frontend.

However, I was unable to easily integrate the generation of man pages into the build_py step in our setup.py.

The click-man page discourages this, because:

If we generate them in our build process and add them to your
distribution we do not have a way to prevent installation to
/usr/share/man for non-UNIX-like Operating Systems.

However, frankly we should not care about this. Having the docs included as 'data_files' in the distribution proper, means that they will automatically appear at ${prefix}/share/man/man1, which is perfect because:

  • It should be obvious for any distribution that what appears in the python distribution should be installed
  • Even if we do support non unix platforms in the future, there is no harm done with having unused man pages installed so long as they are tracked properly by whatever package manager is used.

I have tried to hook this up following the instructions in this blog post, but have not been able to do so. This should be possible but the documentation is near non existent.

The current workaround is to generate the man pages periodically and commit the result to the buildstream repository, which is far from ideal.

@Cynical-Optimist Cynical-Optimist added the bug Something isn't working label Oct 13, 2020
@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @tristanvb] on Apr 29, 2017, 07:07

Note: Filed upstream bug in the hope to find a some help sorting out how to do this

@Cynical-Optimist
Copy link
Author

In GitLab by [Gitlab user @aevri] on Nov 29, 2018, 17:23

mentioned in merge request !981

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant