-
Notifications
You must be signed in to change notification settings - Fork 131
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 script for installing pandoc when not using conda #428
Comments
I understand that installing Pandoc might be complicated on some systems, but on most Linux distros it should be simple, shouldn't it? For Ubuntu 18.04 there should be a package: https://packages.ubuntu.com/bionic/pandoc
I'm not willing to maintain such a script. It sounds like the pypandoc people should maintain this script.
That's an important point, I hope I can get rid of this dependency at some point. See #36. |
Sure, its simple to install on my own system, but that only helps me, it doesn't help anyone else who later wants to build the package's docs. In my opinion, if its a necessary requirement for the build, it should be easy to install in a python environment. With conda this isn't an issue, but with venv its not so straight forward, which is why I bring it up. I also think, even if pypandoc was more actively maintained, including it in the environment for access to a single install script that's independent to the rest of pypandoc seems like a bloated and convoluted way get nbsphinx working via a venv environment. Anyway, I understand were you are coming from, and can see why you wouldn't want the extra overhead for a temporary requirement. Thanks for taking the time to respond. |
According to your issue description it is about you and Ubuntu 18.04. So I'm confused: is it "simple" or "quite a bit of trouble"?
I agree, this would be great.
On Ubuntu?
I'm not sure what you are suggesting, but I wouldn't automatically include it in the installation process anyway. If anything, I would provide it as an optional tool for those users who want to use it. It doesn't make sense to run such a complicated script when you know Pandoc is already installed on your system, does it? If there are users who don't know how to install Pandoc, they might as well install pypandoc and run the installation script.
It's not really about being temporary, the Pandoc dependency may stay there for a long time, who knows. It's about the maintenance of such a highly complex script. If it were a few lines, no problem, but it has 180 lines. It doesn't make sense to copy such a script between projects. But if there is something I can do to make it easier to use such a script for Or probably we should add pypandoc to the documentation? |
Old issue but perfectly relevant for my use case. I wrote down a PR to rely on nbsphinx but we are facing the same problem as @andrewfulton9, the doc is now impossible to build for contributors that don't install manually pandoc, which is not acceptable if we want to be welcoming to new people. Since the opening of this issue, it seems pypandoc is back on track, last commit was in september and there are taking care of issues. They have the which complains after installation with a:
Would you reconsider depending on pypandoc instead of vanilla pandoc ? |
The error comes from
If I understand the above discussion correctly, this was never suggested. But I would definitely consider depending on Maybe this could also become an (optional) dependency of Either way: would that also work for arm64 macOS? |
I have 0 clue. I'm discovering pandoc all together at the moment
Then that's why on most of my machines I don't have any issues as I'm always installing Jupyter. Let me check how they deal with it from their side. |
We would like to use nbsphinx but still only require a One possible bandaid till a solution for #36 is found, would be to check in the ' This way we could opt-in by installing This would be a minimal change which I could commit to submit if @mgeier agrees and doesn't have the time to implement, but to review it. Tackling #36 is unfortunately not feasible for me currently. |
As I wrote above (#428 (comment)):
I also wrote:
Ideally, this should be handled in So I think this should be first suggested to I'm interested in providing a smoother experience for users, so I'd be happy to review a PR! |
I've been trying to convert a project's docs to use an Jupyter notebook instead of a
.rst
file for its tutorial. The project uses tox and venv to build/test its docs and I had quite a bit of trouble getting pandoc installed into the venv on Linux Ubuntu 18.04. Pypandoc has a script to do this, but it doesn't look like there is much activity as far as releases for pypandoc (no accepted PRs since 06/2018 and no pip release since 04/2017). Their script in their master branch works, but their latest pip release is outdated for installing pandoc on linux machines. I am wondering if it would make sense to include a script like that in nbsphinx for people who can't use conda while Pandoc is still a nbsphinx dependency. I would have saved me quite a bit of time and looks like it could help with issues like #239Thanks!
The text was updated successfully, but these errors were encountered: