-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Cache module import locations #11729
Comments
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to sd32 |
This comment has been minimized.
This comment has been minimized.
comment:6
NOTE: If you try to test this, watch out because of these lines:
They can make it so your Sage install is totally broken. To fix, just remove the contents of sitecustomize.py. I spent 15 minutes confused by this. |
comment:7
You have to delete both Also, if you run into problems (presumably some |
Updated patch |
Attachment: trac_11729_import_cache_during_build.patch.gz Attachment: trac_11729_cached_importer.patch.gz Updated patch |
This comment has been minimized.
This comment has been minimized.
comment:8
I've added another workaround for |
comment:15
outdated, should close |
Reviewer: Dima Pasechnik |
This ticket implements a cached module importer for Python. It compiles a list of all available files during build (when
sage -b
is run), hooks into the Python import framework and finds modules by the predetermined file list.Building the Sage library (
sage -b
) automatically creates the cache and thesitecustomize.py
that is used to load the importer into the Python session. The cache is a standard Python dictionary insage/misc/modules_cache.py
.If you encounter any problems while testing this patch, you have to
to not load the importer during Python startup.
Apply trac_11729_cached_importer.patch to the sage library and trac_11729_import_cache_during_build.patch to the sage_scripts (
$AGE_LOCAL/bin
) repository.CC: @williamstein @robertwb @ohanar @simon-king-jena
Component: misc
Keywords: sd32
Author: Volker Braun
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/11729
The text was updated successfully, but these errors were encountered: