-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
SageNB -- Use pkg_resources
to locate DATA
directory
#7402
Comments
Uses |
comment:1
Attachment: trac_7402-pkg_resources.patch.gz This patch should do it. As a note, we won't even need to restart the server if all we edit are template files. A big plus in ease of development, IMHO. |
Changed keywords from none to sagenb notebook |
Author: Tim Dumol |
Reviewer: Mitesh Patel |
comment:2
This works for me. In particular, the Se test suite is oblivious to the change. For me, an existing |
comment:3
A Sphinx warning to keep in mind:
|
comment:4
Replying to @qed777:
Since this is only used for development, I don't think there's much of a problem. It should be possible to fix by making Sphinx read the .pth file and look there, but I am inexperienced regarding that. Regards the --dev-mode thing, I just noticed that SageNB uses disttools, not setuptools, which is why the |
pkg_resources
is the official way to access data directories in asetuptools
package. Usingpkg_resources
to locate theDATA
directory will allow us to use.pth
files for ease of development. For example:Thus, there will no longer be a need to
sage -python setup.py install
after every change.CC: @qed777
Component: notebook
Keywords: sagenb notebook
Author: Tim Dumol
Reviewer: Mitesh Patel
Issue created by migration from https://trac.sagemath.org/ticket/7402
The text was updated successfully, but these errors were encountered: