Skip to content

Commit

Permalink
Create /usr/venv symlink.
Browse files Browse the repository at this point in the history
* This is a temporary hack to create a path that
  pip v.1.4 mistakenly expects to exist.
* Once pypa/pip#1074 is fixed,
  then we can remove the symlink.

Fixes (for now) #8.
  • Loading branch information
toffer committed Jul 25, 2013
1 parent cbccb8b commit 90eeeab
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/virtualenv/manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,22 @@
mode => 0644,
source => 'puppet:///modules/virtualenv/requirements.txt',
require => Exec['install-virtualenv'],
}
}

# Temporary hack to get around pip 1.4 error.
# See https://github.com/toffer/minecloud-ami/issues/8
file { '/usr/venv':
ensure => 'link',
target => '/usr/local/venv',
require => Exec['install-virtualenv'],
}

$pip = '/usr/local/venv/bin/pip'
$requirements = '/usr/local/venv/requirements.txt'
exec {'pip-install-requirements':
command => "$pip install -r $requirements",
require => [Exec['install-virtualenv'],
File['/usr/venv'],
File['/usr/local/venv/requirements.txt'],
Package['python-dev']],
}
Expand Down

0 comments on commit 90eeeab

Please sign in to comment.