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

Change SAGE_DOC environment variables #20030

Closed
jdemeyer opened this issue Feb 10, 2016 · 24 comments
Closed

Change SAGE_DOC environment variables #20030

jdemeyer opened this issue Feb 10, 2016 · 24 comments

Comments

@jdemeyer
Copy link

Replace
SAGE_DOC -> SAGE_DOC_SRC
SAGE_DOC_OUTPUT -> SAGE_DOC

Merge with #20047

CC: @kiwifb

Component: misc

Author: Jeroen Demeyer

Branch/Commit: u/fbissey/SAGE_DOC_SRC @ 56ea5ef

Reviewer: François Bissey

Issue created by migration from https://trac.sagemath.org/ticket/20030

@jdemeyer jdemeyer added this to the sage-7.1 milestone Feb 10, 2016
@jdemeyer
Copy link
Author

Dependencies: #19963

@jdemeyer
Copy link
Author

Branch: u/jdemeyer/SAGE_DOC_SRC

@jdemeyer
Copy link
Author

Commit: f3d7236

@jdemeyer
Copy link
Author

New commits:

1cebbc9Fix citation dir with custom SAGE_DOC_OUTPUT
2c56897Build documentation in $SAGE_SHARE/doc/sage
dfe2c06Minor fixes to top-level build system
cb2b63fRemove old src/doc/ouput and .pyc files
a601a8cAdd symbolic link SAGE_DOC/output -> SAGE_DOC_OUTPUT
de10a5eUse new documentation paths in documentation
96685abFix a few more paths
f3d7236SAGE_DOC -> SAGE_DOC_SRC and SAGE_DOC_OUTPUT -> SAGE_DOC

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 10, 2016

Changed commit from f3d7236 to 1667635

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Feb 10, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

1667635Ignore errors in symlinking

@kiwifb
Copy link
Member

kiwifb commented Feb 10, 2016

Reviewer: François Bissey

@kiwifb
Copy link
Member

kiwifb commented Feb 10, 2016

comment:5

Looks good to me.

@vbraun
Copy link
Member

vbraun commented Feb 10, 2016

comment:6

Breaks incremental updates

File "src/sage/misc/sageinspect.py", line 25, in sage.misc.sageinspect
Failed example:
    sage_getdoc(sage.rings.rational).lstrip()
Exception raised:
    Traceback (most recent call last):
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 496, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 858, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.misc.sageinspect[2]>", line 1, in <module>
        sage_getdoc(sage.rings.rational).lstrip()
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/misc/sageinspect.py", line 1829, in sage_getdoc
        s = sage.misc.sagedoc.format(r, embedded=(embedded_override or EMBEDDED_MODE))
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/misc/sagedoc.py", line 664, in format
        s = detex(s, embedded=embedded)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/misc/sagedoc.py", line 219, in detex
        s = sphinxify(s, format='text')
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sagenb-0.11.6.1-py2.7.egg/sagenb/misc/sphinxify.py", line 121, in sphinxify
        confoverrides, None, None, True)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/Sphinx-1.2.2-py2.7.egg/sphinx/application.py", line 107, in __init__
        confoverrides or {}, self.tags)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/Sphinx-1.2.2-py2.7.egg/sphinx/config.py", line 227, in __init__
        os.chdir(dirname)
    OSError: [Errno 2] No such file or directory: '/home/buildslave-sage/slave/sage_git/build/local/share/doc/sage/en/introspect'

@kiwifb
Copy link
Member

kiwifb commented Feb 11, 2016

comment:7

Yes I have now noticed in the last hour that this change would require to have at least en/introspect/conf.py and common/conf.py in the doc folder, shipped under the new SAGE_DOC. Alternatively the function generate_configuration in the sage notebook at sagenb/misc/sphinxify.py needs to be fixed. I would be quite eager for it to be.

However including sagemath/sagenb#363 in sagenb would be sufficient to fix the problem.

@kiwifb
Copy link
Member

kiwifb commented Feb 11, 2016

comment:8

Why is sphinxify.py part of sagenb rather than sage? I think the functionality should be moved in the future, especially if we want to deprecate sagenb.

@jdemeyer
Copy link
Author

comment:9

Yes, I was also very surprised to see that.

@jdemeyer jdemeyer removed this from the sage-7.1 milestone Feb 11, 2016
@kiwifb
Copy link
Member

kiwifb commented Feb 13, 2016

comment:11

Found one error, line 804 of sagedoc.py needs to be changed from SAGE_DOC to SAGE_DOC_SRC.

@kiwifb
Copy link
Member

kiwifb commented Feb 14, 2016

comment:12

Corrected missing SAGE_DOC_SRC.


New commits:

56ea5efMissing a SAGE_DOC_SRC in sagedoc.py

@kiwifb
Copy link
Member

kiwifb commented Feb 14, 2016

Changed branch from u/jdemeyer/SAGE_DOC_SRC to u/fbissey/SAGE_DOC_SRC

@kiwifb
Copy link
Member

kiwifb commented Feb 14, 2016

Changed commit from 1667635 to 56ea5ef

@kiwifb
Copy link
Member

kiwifb commented Feb 14, 2016

comment:14

#20047 is for the matching change in sagenb.

@jdemeyer

This comment has been minimized.

@jdemeyer
Copy link
Author

Changed dependencies from #19963 to none

@vbraun
Copy link
Member

vbraun commented Feb 23, 2016

comment:16

still pending?

@kiwifb
Copy link
Member

kiwifb commented Feb 23, 2016

comment:17

Replying to @vbraun:

still pending?

Slight problems in #20047, the new sagenb tarball is not ready, it should have included a new dependency (or sticked to the old ones).

@jdemeyer
Copy link
Author

comment:18

This should be merged through #20047, which contains the branch here. Not sure which milestone I should set then.

@vbraun
Copy link
Member

vbraun commented Feb 25, 2016

comment:19

If this ticket can't be merged alone and can't depend on #20047 (because it is contained there) then it should be closed. Alternatively make this ticket depend on #20047 which will result in an trivial merge commit (adding no new code).

@jdemeyer
Copy link
Author

comment:20

OK, then you can just close this ticket when you merge #20047.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants