Mercurial > hg > FileServer
comparison INSTALL.py @ 19:c6e459be8534
fix install script
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 29 Feb 2012 16:15:31 -0800 |
parents | 8d31e36f084e |
children | 1eb5e82605a5 |
comparison
equal
deleted
inserted
replaced
18:76c939271534 | 19:c6e459be8534 |
---|---|
41 os.mkdir(src) | 41 os.mkdir(src) |
42 | 42 |
43 # clone the repository | 43 # clone the repository |
44 call(['hg', 'clone', REPO], cwd=src) | 44 call(['hg', 'clone', REPO], cwd=src) |
45 | 45 |
46 """ | 46 # find the virtualenv python |
47 XXX unfinished | 47 python = None |
48 for path in (('bin', 'python'), ('Scripts', 'python.exe')): | |
49 _python = os.path.join(DEST, *path) | |
50 if os.path.exists(_python) | |
51 python = _python | |
52 break | |
53 else: | |
54 raise Exception("Python binary not found in %s" % DEST) | |
48 | 55 |
49 hg clone ${REPO} | 56 # find the clone |
50 cd FileServer | 57 filename = REPO.rstrip('/') |
51 python setup.py develop | 58 filename = REPO.split('/')[-1] |
52 """ | 59 clone = os.path.join(src, filename) |
60 assert os.path.exists(clone), "Clone directory not found in %s" % src | |
53 | 61 |
62 # ensure setup.py exists | |
63 assert os.path.exists(os.path.join(clone, 'setup.py')), 'setup.py not found in %s' % clone | |
64 | |
65 # install the package in develop mode | |
66 call([python 'setup.py', 'develop'], cwd=clone) |