Edgewall Software

Ticket #3296 (closed defect: duplicate)

Opened 2 years ago

Last modified 2 years ago

No Support for --home=~ Python Installations

Reported by: trac@… Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.9.5
Severity: normal Keywords:
Cc:

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

trac-home-patch1.patch (1.3 KB) - added by trac@… 2 years ago.
patch for setup.py

Change History

Changed 2 years ago by trac@…

patch for setup.py

Changed 2 years ago by eblot

  • severity changed from major to 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 ?

Changed 2 years ago by trac@…

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

Changed 2 years ago by cmlenz

  • status changed from new to closed
  • resolution set to duplicate

This is a duplicate of #963.

Add/Change #3296 (No Support for --home=~ Python Installations)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.