Edgewall Software

Ticket #2524 (closed defect: duplicate)

Opened 3 years ago

Last modified 3 years ago

can't use "./setup.py --home=..." to install trac locally

Reported by: Artem Baguinski <femistofel@…> Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.9.2
Severity: normal Keywords:
Cc:

Description

I'd like to install trac in my home directory on a webserver I don't own. If I try to

  python setup.py install --home=~/local/stow/trac

I get:

running install
Traceback (most recent call last):
  File "setup.py", line 237, in ?
    cmdclass = {'install': my_install,
  File "/usr/lib/python2.3/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/usr/lib/python2.3/distutils/dist.py", line 907, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.3/distutils/dist.py", line 927, in run_command
    cmd_obj.run()
  File "setup.py", line 31, in run
    self.siteconfig()
  File "setup.py", line 34, in siteconfig
    conf_dir = os.path.join(self.prefix, 'share', 'trac', 'conf')
  File "/usr/lib/python2.3/posixpath.py", line 62, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Because self.prefix doesn't exist. I can workaround using --prefix.

Attachments

Change History

Changed 3 years ago by cmlenz

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

Duplicate of #963.

Add/Change #2524 (can't use "./setup.py --home=..." to install trac locally)

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.