Opened 16 years ago
Closed 11 years ago
#10 closed enhancement (wontfix)
make it easier to set custom Perl library paths
Reported by: | price | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | web | Keywords: | |
Cc: |
Description
Anders wrote a while ago:
I talked with presbrey on Monday about his r403 (make suexec pass through PYTHONPATH and PERL5LIB), which I reverted for security concerns. The goal is to make it easier to use locally installed Python or Perl libraries, without having to mess with sys.path or @INC in every script. We came up with one possible solution, which is to have suexec pass PYTHONPATH and PERL5LIB after sanitizing them to make sure they only point to paths in the user's locker.
I came up with an alternative solution for Python that involves significantly less work: I put the line
import site, os.path; site.addsitedir(os.path.expanduser("~/lib/python2.5/site-packages"))
in /usr/lib/python2.5/site-packages/00scripts-home.pth. ecprice and I are going to try out this strategy with the HMMT server.
I don't know of a similar mechanism for Perl, though.
Change History (7)
comment:1 Changed 14 years ago by adehnert
comment:2 Changed 14 years ago by andersk
I don’t know of a similar mechanism for Perl, though.
comment:3 Changed 14 years ago by broder
Could you use sitecustomize.pl for Perl? See also <http://debathena.mit.edu/trac/ticket/228>
It's not enabled by default in Ubuntu. I don't know if it is for Fedora, or if you'd be willing to build it yourselves if it's not.
comment:4 Changed 11 years ago by adehnert
- Summary changed from make it easier to set custom Python/Perl library paths to make it easier to set custom Perl library paths
AIUI, this is fixed for Python.
comment:5 Changed 11 years ago by adehnert
- Resolution set to fixed
- Status changed from new to closed
Nobody's cared enough to fix this for Perl in the last five years. WONTFIXing on the theory that clearly there aren't enough Perl devs for this to be a practical issue. Feel free to reopen if that changes.
comment:6 Changed 11 years ago by adehnert
- Resolution fixed deleted
- Status changed from closed to reopened
comment:7 Changed 11 years ago by adehnert
- Resolution set to wontfix
- Status changed from reopened to closed
Since 00scripts-home.pth is now on the deployed servers, I assume it ended up working out...