#!/bin/sh VERSION=`sh -c "cat src/allmydata/_version.py | grep verstr | head -n 1 | cut -d' ' -f 3" | sed "s/\"//g"` PWD=`pwd` TARGET="/Applications/tahoe.app" # Clean up any test garbage that might be left over from a recent test run. rm -rvf _trial_temp virtualenv osx-venv osx-venv/bin/pip install . # The virtualenv contains all the dependencies we need, but the bin/python # itself is not useful, nor is having it as the shbang line in the generated # bin/tahoe executable. Replace bin/tahoe with a form that explicitly sets # sys.path to the target directory (/Applications/tahoe.app). This isn't as # isolated as a proper virtualenv would be (the system site-packages # directory will still appear later in sys.path), but I think it ought to # work. rm osx-venv/bin/* cat >osx-venv/bin/tahoe <