Skip to content
Sign up
Appearance settings

Allow virtualenv definitions to share the same requirements file#6

Merged
stankevich merged 2 commits intovoxpupuli:masterfrom
zoni:sharedrequirements
Mar 14, 2013
Merged

Allow virtualenv definitions to share the same requirements file#6
stankevich merged 2 commits intovoxpupuli:masterfrom
zoni:sharedrequirements

Conversation

@zoni
Copy link
Copy Markdown
Contributor

@zoni zoni commented Mar 11, 2013

I wanted to do the following, but this causes resources to be declared twice:

python::virtualenv { '/usr/share/err/python3':
  ensure       => present,
  version      => '3',
  requirements => '/usr/share/err/repo/requirements.txt',
  distribute   => false,
}

python::virtualenv { '/usr/share/err/python2':
  ensure       => present,
  version      => '2',
  requirements => '/usr/share/err/repo/requirements.txt',
  distribute   => false,
}

With these changes, this is now possible. Note that this pull request automatically brings in the commit from #4 so if you do not intend to merge this one, let me know and I will pull those changes out of it.

Nick Groenen added 2 commits March 11, 2013 14:20
There was a dependency between python::virtualenv and
python::requirements. Basically, the virtualenv wanted to initialize
requirements, but requirements depended on the virtualenv being created
already, resulting in:

err: Could not apply complete catalog: Found 1 dependency cycle:
(Exec[python_requirements_check_/usr/share/err/repo/requirements.txt] =>
Python::Requirements[/usr/share/err/repo/requirements.txt] =>
Exec[python_virtualenv_/usr/share/err/python3] =>
Python::Requirements[/usr/share/err/repo/requirements.txt] =>
Exec[python_requirements_check_/usr/share/err/repo/requirements.txt])
stankevich added a commit that referenced this pull request Mar 14, 2013
Allow virtualenv definitions to share the same requirements file
@stankevich stankevich merged commit 34f562a into voxpupuli:master Mar 14, 2013
@stankevich
Copy link
Copy Markdown
Collaborator

Thanks!

@zoni zoni deleted the sharedrequirements branch March 14, 2013 14:01
stankevich added a commit that referenced this pull request Sep 1, 2015
Allow virtualenv definitions to share the same requirements file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants