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

Add dependencies to allow pycairo and pygobject installation for sphinxcontrib-shoebot #162

Closed
stuaxo opened this issue Feb 25, 2021 · 3 comments

Comments

@stuaxo
Copy link

stuaxo commented Feb 25, 2021

Hi,
For Shoebot we use pycairo along with pygobject to access pango and rsvg.
Would it be possible to add the dependencies for these?

This would allow us to generate images using sphinxcontrib-shoebot, our extension that renders images with shoebot.

I had a poke at the rtd dockerfile and was able to get things working using

libgirepository1.0-dev   # This lets us install pygobject and pycairo, both of which only compile from source.
gir1.2-pango-1.0         # Gobject bindings for Pango, which we use to render text
gir1.2-rsvg-2.0          # Gobject bindings for Rsvg, so we can output to svg

Thanks
Stuart

@stuaxo
Copy link
Author

stuaxo commented Mar 5, 2021

https://github.com/shoebot/shoebot/
https://github.com/shoebot/sphinxcontrib-shoebot/

https://shoebot.readthedocs.io/en/latest/

This will let us render inline examples in our docs, and enable other projects that use pycairo and pango that may want to render examples in their docs.

@humitos
Copy link
Member

humitos commented Apr 1, 2021

Hi! I suggest you to subscribe to this PR readthedocs/readthedocs.org#8065 that implements a new config in .readthedocs.yaml that allow users to install packages via APT. Once it gets merged and deployed you will be able to install these packages by yourself.

@humitos humitos closed this as completed Apr 1, 2021
@stuaxo
Copy link
Author

stuaxo commented Apr 1, 2021

Thanks for looking at this, and for the link.

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

2 participants