-
Notifications
You must be signed in to change notification settings - Fork 38
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
Improve the check for Node #91
Improve the check for Node #91
Conversation
@GjjvdBurg Sorry, I missed this in the autumn. I've just been looking into issue #92 and it now feels weird to me that we maintain (or more accurately don't maintain) a >2 year old local copy of What are your thoughts on dropping our outdated local copy and just installing the latest |
I'll review this PR once I get the Javascript used in this package working on my machine. For some reason, I'm getting a missing package error from node for |
Your PR has already been helpful 🎉 . I notice that I don't have a However, I definitely had node installed prior to installing I subsequently installed it using |
Hi @martintoreilly, thanks for checking up on this PR. It's likely you missed it initially because I marked it as draft PR. I didn't have a unit test for the added functionality at the time, and didn't get around to adding one because it would involve significant patching/mocking. My contribution to this package is small as I only added the ability to install the node dependencies when installing the Python package. I can't tell you therefore why the version of To debug your installation issue, can you check what happens if you clone the repo and install using:
(either in a virtualenv or globally, it should either print out a warning or show node installation). |
I think that the version of |
@martintoreilly I finally added unit tests for the node check, and marked it as ready for review. Did you ever solve the installation issue you had? I suggest we create a separate issue to remove the included version of Readability.js and pull it from npm instead (update: that's now in #95) |
This will make it easier to check whether ReadabiliPy is installed with node support or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR makes the check for Node more robust. It handles the scenario where a user installs ReadabiliPy, then installs Node, but doesn't reinstall ReadabiliPy. In that scenario the old
have_node
function would incorrectly returnTrue
.