Edgewall Software

Ticket #518 (closed defect: fixed)

Opened 4 years ago

Last modified 23 months ago

siteconfig.py should be generated at ''build''

Reported by: pLu Owned by: cmlenz
Priority: highest Milestone: 0.8.2
Component: general Version: 0.7.1
Severity: blocker Keywords: windows install
Cc:

Description (last modified by cmlenz) (diff)

The file siteconfig.py seems to be missing from the package trac-0.7.1.win32.exe.

Traceback (most recent call last):
  File "trac-admin", line 34, in ?
    import trac.siteconfig
ImportError: No module named siteconfig

Attachments

Change History

Changed 4 years ago by daniel

  • priority changed from normal to highest
  • severity changed from normal to blocker
  • milestone set to 0.8

Very true indeed.

siteconfig.py should be generated at build in setup.py, rather than install... otherwise siteconfig.py will be absent.

Changed 4 years ago by daniel

An interim solution is to install from the source tarball/zip file, the siteconfig will be automatically generated when you run python setup.py install.

Changed 4 years ago by Daniel Lundin <daniel@…>

  • component changed from trac-admin to general

Changed 4 years ago by daniel

  • keywords windows install added; siteconfig.py trac-0.7.1.win32.exe removed
  • summary changed from siteconfig.py missing in trac-0.7.1.win32.exe to siteconfig.py should be generated at ''build''

Changed 4 years ago by jonas

We can't generate siteconfig.py at "build" because the installation prefix is not yet known. The installation prefix is determined by the "install" command.

How does the windows installer work? Does it let us run some code before/after the installation?

Changed 4 years ago by jonas

  • milestone changed from 0.8 to 0.9

I don't see how we can solve this, not for 0.8 anyway...

Changed 4 years ago by anonymous

  • keywords win32 added

Changed 4 years ago by cmlenz

We could probably use the --install-script option for this.

Changed 3 years ago by cmlenz

  • owner changed from daniel to cmlenz
  • status changed from new to assigned
  • milestone changed from 0.9 to 0.8.2

I'm implementing this for the 0.8.2 release today.

Changed 3 years ago by cmlenz

  • status changed from assigned to closed
  • resolution set to fixed
  • description modified (diff)

This should be fixed in [1745], ported to the 0.8 branch in [1746].

Changed 23 months ago by sid

  • keywords win32 removed

Add/Change #518 (siteconfig.py should be generated at ''build'')

Author



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