Opened 19 years ago
Closed 19 years ago
#3296 closed defect (duplicate)
No Support for --home=~ Python Installations
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.9.5 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Set severity as major as this pretty much completely prevents the use of trac on a system in which —home=~ is used. I initially patched the setup.py to change the siteconfig method in my_install (attached), however there are more problems, the search path gets messed up as well causing the scan for plugins to attempt to create (via setuptools) /Library/Webserver/.python-eggs
Attachments (1)
Change History (4)
by , 19 years ago
Attachment: | trac-home-patch1.patch added |
---|
comment:1 by , 19 years ago
Severity: | major → normal |
---|
I may not understand the bug report, but ~home should be used with care: ~home
should be replaced with $HOME
, as the shell (which translates the ~home
alias into the actual directory) may not work when ~
is prefixed with other characters, such as —install-dir= for example.
Can you give more details about the actual issue ?
comment:2 by , 19 years ago
Digging into this a little more, the second problem seems to be somewhat related to the setuptools side of things, due to being in a CGI script setuptools tries to use the cwd as the place to unpack the eggs but since it is not writable by the script (the web server runs it as nobody) it can't make the directory… and that is covered in the PYTHON_EGG_CACHE bit in the CGI install… so just the first problem please ;)
Re: your response
there is no "~home" that is a shell magic folders thing, i am talking about using a —home=~ set up in python: http://python.org/doc/current/inst/alt-install-windows.html#SECTION000310000000000000000
comment:3 by , 19 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This is a duplicate of #963.
patch for setup.py