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

Local mathjax breaks install #1018

Closed
stefanv opened this issue Nov 20, 2011 · 4 comments
Closed

Local mathjax breaks install #1018

stefanv opened this issue Nov 20, 2011 · 4 comments
Labels
Milestone

Comments

@stefanv
Copy link
Contributor

stefanv commented Nov 20, 2011

I sometimes run IPython in-place, other times I do a full install.

Once Mathjax has been installed locally in the in-place version, doing "python setup.py install" no longer works:


Extracting ipython-0.12.dev-py3.2.egg to /home/stefan/lib/python3.2/site-packages
  File "/home/stefan/lib/python3.2/site-packages/ipython-0.12.dev-py3.2.egg/IPython/frontend/html/notebook/static/mathjax/docs/source/conf.py", line 40
    project = u'MathJax'
                       ^
SyntaxError: invalid syntax

The solution may be to explicitly tell setup.py to ignore the local Mathjax cache.

@fperez
Copy link
Member

fperez commented Nov 20, 2011

It works fine under python 2.7, but I see in your traceback that you're installing with python 3. What we need to do is unconditionally skip the mathjax docs/ directory, and in most cases mathjax altogether. I say in most cases, because I think in the long run it may actually be useful to provide alternate installers with mathjax bundled in: if people are going to download it later anyway, might as well give it to them right away and save them the hassles. Obviously it should be optional, as it makes the download ~ 100mb larger, but could be very convenient for certain users.

@takluyver
Copy link
Member

I'm not quite sure why it's an issue at all. Does running setup try to byte-compile any .py files it finds, even if they're not in a declared package?

@fperez
Copy link
Member

fperez commented Nov 20, 2011

Yes, we do run a compileall call ourselves, which is a good idea: it catches syntax errors that may inadvertently slip at the last minute in files deep down in the code. In this case, we simply shouldn't be shipping the sphinx docs for mathjax, ever :)

@takluyver
Copy link
Member

OK, that makes sense.

@minrk minrk closed this as completed in 9f99569 Dec 6, 2011
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants