Ticket #518 (closed defect: fixed)
Opened 8 years ago
Last modified 5 years 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: | |||
| Release Notes: | |||
| API Changes: | |||
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
comment:1 Changed 8 years ago by daniel
- Milestone set to 0.8
- Priority changed from normal to highest
- Severity changed from normal to blocker
comment:2 Changed 8 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.
comment:3 Changed 8 years ago by Daniel Lundin <daniel@…>
- Component changed from trac-admin to general
comment:4 Changed 7 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''
comment:5 Changed 7 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?
comment:6 Changed 7 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...
comment:7 Changed 7 years ago by anonymous
- Keywords win32 added
comment:8 Changed 7 years ago by cmlenz
We could probably use the --install-script option for this.
comment:9 Changed 7 years ago by cmlenz
- Milestone changed from 0.9 to 0.8.2
- Owner changed from daniel to cmlenz
- Status changed from new to assigned
I'm implementing this for the 0.8.2 release today.
comment:10 Changed 7 years ago by cmlenz
- Description modified (diff)
- Resolution set to fixed
- Status changed from assigned to closed
This should be fixed in [1745], ported to the 0.8 branch in [1746].
comment:11 Changed 5 years ago by sid
- Keywords win32 removed



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