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
Make submodule checks work under Python 3. #3387
Conversation
There is one case that the previous addressed that this no longer does: if someone downloads a tag from GitHub, it will be missing components and not be a repo. This should not be allowed to be installed, but this PR will allow an incomplete IPython to be installed without warning in that case. |
the daily build patches out the runtime git submodule check and will probably continue to do so for robustness. |
It should be allowed to be installed from a github download - don't
On 30 May 2013 17:53, Julian Taylor notifications@github.com wrote:
|
No, it should not because you cannot download a complete sdist of IPython from GitHub. |
You can download a package which can successfully install everything apart from the Notebook. We should make it clear why the Notebook isn't working, e.g. with a runtime check for the notebook static files, but we shouldn't completely cripple that file just because it doesn't work for the notebook. Especially since detecting the case to cripple it makes life more complicated. |
it should be a safe assumption that any install of IPython is complete. |
If you don't have tornado/pyzmq, you can install IPython but not run the notebook. The notebook static components function like just another dependency, except that they're in a git submodule. We can easily add a check that will prevent the notebook server from starting if you don't have those files, just like it doesn't start if tornado isn't installed. Anyway, any objections to landing this PR? |
Critical difference: you can't install
No, I'll merge this now since it's critical, and figure out a way to prevent installation missing components later. |
Make submodule checks work under Python 3 introduces a regression in the submodule check for people who may have fetched a tarball from GitHub, which will now install an incomplete IPython.
Thanks. The static components could be installed later, it's just slightly more complicated because you'd have to download, unzip and copy the files to the right location by hand. We could easily provide a wrapper script/function to automate that if it looks like many people will end up in that situation. |
Make submodule checks work under Python 3 introduces a regression in the submodule check for people who may have fetched a tarball from GitHub, which will now install an incomplete IPython.
My shot at fixing gh-3385.
is_repo
check up: distro packaging will often not be running from a git repository, in which case packagers won't need to do anything. If we're not in a git repository, there's nothing sensible we can do about submodules anyway.