Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1785 (closed enhancement: wontfix)

Opened 9 years ago

Last modified 6 years ago

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

Reported by: Chris Arndt Owned by: Chris Arndt
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 Download (1.9 KB) - added by Chris Arndt 9 years ago.

Change History

Changed 9 years ago by Chris Arndt

comment:1 Changed 9 years ago 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

comment:2 Changed 9 years ago 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?)

comment:3 Changed 9 years ago by Chris Arndt

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

comment:4 Changed 9 years ago by Chris Arndt

  • Owner changed from anonymous to Chris Arndt

comment:5 Changed 9 years ago by Chris Arndt

  • Status changed from new to assigned

comment:6 Changed 9 years ago 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.

comment:7 Changed 9 years ago by faide

  • Milestone changed from 1.6 to 1.5

comment:8 Changed 7 years ago by jorge.vargas

have you guys seen  http://bitbucket.org/turbogears/tgdevtools-dev/src/tip/scripts/ I think we should reuse that infrastructure, as it makes the maintenance of the venv-script simpler.

comment:9 Changed 7 years ago by Chris Arndt

Interesting. Though, from a first look, both scripts have a slightly different scope. Maybe we can combine the features of both. Aso, my script is already rather old and doesn't know anything about pip.

comment:10 Changed 6 years ago by Chris Arndt

  • Status changed from assigned to closed
  • Resolution set to wontfix

Things have moved on in the Python packaging world since this script was created. Nowadays pip or sth simimilar should be used instead.

Note: See TracTickets for help on using tickets.