Ticket #1785 (assigned enhancement)

Opened 5 months ago

Last modified 5 days ago

[PATCH] Script for creating virtualenv bootstrap script to replace tgsetup.py

Reported by: Chris Arndt Assigned to: Chris Arndt (accepted)
Priority: normal Milestone: 1.5
Component: Installation Version: 1.0.4.4
Severity: normal Keywords: tgsetup
Cc:

Description

We all know that tgsetup.py sucks (#1317, #1740, #1741).

We all love virtualenv.

So here's a script that creates a virtualenv bootstrap script to install TurboGears in a new or existing virtual environment. Here is the help message from the created bootstrap script (tgsetupng.py == tgsetup Next Generation ;-)):

Usage: Usage: tgsetupng.py [OPTIONS] DEST_DIR [VERSION]

Installs the TurboGears framework in a virtual environment in DESTDIR.

Specify a particular version to install with VERSION.

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -v, --verbose         Increase verbosity
  -q, --quiet           Decrease verbosity
  --clear               Clear out the non-root install and start from scratch
  --with-site-packages  Give access to the global site-packages dir to the
                        virtual environment
  --package-index=URL   Find & download packages from package index at URL

Successfully tested on Ubuntu 7.10, Windows 2000 and Mac OS X 10.4.

Attachments

create-tgsetupng.py (1.9 kB) - added by Chris Arndt on 04/10/08 08:20:05.

Change History

04/10/08 08:20:05 changed by Chris Arndt

  • attachment create-tgsetupng.py added.

04/24/08 11:22:30 changed by Chris Arndt

  • summary changed from [PATH] Script for creating virtualenv bootstrap script to replace tgsetup.py to [PATCH] Script for creating virtualenv bootstrap script to replace tgsetup.py.

06/06/08 02:06:24 changed by faide

  • milestone changed from 1.1 to 1.1.1.

does it work without virtual env (ie: can I use this to install TG in my normal python?)

06/06/08 11:23:19 changed by Chris Arndt

No, this is for a virtualenv-based install only.

07/21/08 11:38:34 changed by Chris Arndt

  • owner changed from anonymous to Chris Arndt.

07/21/08 12:50:14 changed by Chris Arndt

  • status changed from new to assigned.

07/21/08 14:25:59 changed by Chris Arndt

I created a new version of the script and added it to the TurboGears repository under /projects/tgsetupng/. There is a small README.txt included with a bit more information but it's not yet finished. When it is, I will probably write to the TG mailing list and ask for testers.

08/24/08 10:27:20 changed by faide

  • milestone changed from 1.6 to 1.5.