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

Ship Python "example" scripts #1916

Open
2 tasks
peternewman opened this issue Oct 23, 2023 · 3 comments
Open
2 tasks

Ship Python "example" scripts #1916

peternewman opened this issue Oct 23, 2023 · 3 comments

Comments

@peternewman
Copy link
Member

E.g. in a separate Debian package etc

As raised by @kengruven in #1912 but I've thought the same thing too previously (and don't seem to have made an issue about it).

  • not part of the distribution, perhaps because it's an "example", but the C++ command-line programs are "examples", too -- ?
  • Write Man pages
  • Debian (and other) packaging
@yoe
Copy link
Contributor

yoe commented Nov 28, 2023

FWIW, shipping examples in Debian packages is usually done by placing them in /usr/share/doc/package/examples

@peternewman
Copy link
Member Author

Although some are fairly simplistic, others such as https://github.com/OpenLightingProject/ola/blob/master/python/examples/rdm_compare.py are fully blown programmes which just happen to be written in Python and currently in an examples directory. Even the simplest scripts are no different to (but some may duplicate) the C++ examples we ship as our binaries.

I don't know if that changes where they should live?

@yoe
Copy link
Contributor

yoe commented Dec 11, 2023

Although some are fairly simplistic, others such as https://github.com/OpenLightingProject/ola/blob/master/python/examples/rdm_compare.py are fully blown programmes which just happen to be written in Python and currently in an examples directory. Even the simplest scripts are no different to (but some may duplicate) the C++ examples we ship as our binaries.

I don't know if that changes where they should live?

Not really.

If some are expected to be run by end users, they should probably live in /usr/bin rather than in an example directory.

But if that's not the case, then they should be in the examples directory. There is no limit to how big installed examples can be; policy says that large example files should be compressed (and debhelper implements that), so it makes it slightly less easy to look at them, but not to an extent that is problematic.

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

No branches or pull requests

2 participants