Merge lp:~smoser/curtin/trunk.1703755-install-in-virtualenv into lp:~curtin-dev/curtin/trunk
Status: | Merged |
---|---|
Merged at revision: | 530 |
Proposed branch: | lp:~smoser/curtin/trunk.1703755-install-in-virtualenv |
Merge into: | lp:~curtin-dev/curtin/trunk |
Diff against target: |
43 lines (+16/-2) 1 file modified
setup.py (+16/-2) |
To merge this branch: | bzr merge lp:~smoser/curtin/trunk.1703755-install-in-virtualenv |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Ryan Harper (community) | Approve | ||
Review via email: mp+331675@code.launchpad.net |
Commit message
setup.py: fix to allow installation into a virtualenv
This just makes '/usr' not be a full path. It does not fix usage
of things that are are expected to be in /usr/ (the helpers).
The 'in_virtualenv' is the same method we employ for this function
in cloud-init.
Description of the change
To Test:
$ mydir=$(mktemp -d)
$ virtualenv $mydir
$ . $mydir/bin/activate
$ bzr branch lp:~smoser/curtin/trunk.1703755-install-in-virtualenv
$ pip install ./trunk.
Processing ./trunk.
Installing collected packages: curtin
Running setup.py install for curtin ... done
Successfully installed curtin-0.1.0
$ find $mydir/usr -type f
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
/tmp/tmp.
Nicely done. Thanks!