Thanks. That makes sense for installing third party packages. But it seems like my hack is the only way to use my own packages (which are continually under development and I don't install them).
Would it be possible to check for a user defined environment variable (say SAGE_PYTHOPATH) and append it to PYTHONPATH in sage-env if it is defined (I have never really bothered to learn bash programming). Are there risks I should be aware of in trying to use my personal Python modules within Sage? Thanks again, Ryan On Tue, Jan 25, 2011 at 10:05 AM, Simon King <simon.k...@uni-jena.de> wrote: > Hi Ryan, > > On 25 Jan., 13:25, Ryan Krauss <ryanwkra...@gmail.com> wrote: >> So, is there a supported way for the user to append paths to the >> PYTHONPATH in the Sage installation (sage-env)? > > AFAIK, it is not supported to work with your system-wide Python from > within Sage. > > Hence, the supported way of using a Python package is to install it in > Sage's Python (not in your system-wide Python and import it from > there). > > In other words, you may either open a Sage shell (with "sage -sh" on > the command line) and then install your package as usual (inside the > Sage shell, "python" will refer to Sage's Python). Or you may replace > the command "python" by "sage -python" when you install the package. > In both cases, the package will henceforth be available to Sage. > > Best regards, > Simon > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org