{"action":"created","issue":{"url":"https://api.github.com/repos/stankevich/puppet-python/issues/189","labels_url":"https://api.github.com/repos/stankevich/puppet-python/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/stankevich/puppet-python/issues/189/comments","events_url":"https://api.github.com/repos/stankevich/puppet-python/issues/189/events","html_url":"https://github.com/stankevich/puppet-python/issues/189","id":68967088,"number":189,"title":"Support for SCL?","user":{"login":"erik-stephens","id":3054461,"avatar_url":"https://avatars.githubusercontent.com/u/3054461?v=3","gravatar_id":"","url":"https://api.github.com/users/erik-stephens","html_url":"https://github.com/erik-stephens","followers_url":"https://api.github.com/users/erik-stephens/followers","following_url":"https://api.github.com/users/erik-stephens/following{/other_user}","gists_url":"https://api.github.com/users/erik-stephens/gists{/gist_id}","starred_url":"https://api.github.com/users/erik-stephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erik-stephens/subscriptions","organizations_url":"https://api.github.com/users/erik-stephens/orgs","repos_url":"https://api.github.com/users/erik-stephens/repos","events_url":"https://api.github.com/users/erik-stephens/events{/privacy}","received_events_url":"https://api.github.com/users/erik-stephens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/stankevich/puppet-python/labels/pr-welcome","name":"pr-welcome","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-16T17:04:56Z","updated_at":"2015-07-21T13:16:41Z","closed_at":null,"body":"I don't see a way to use this module with a python from [SCL](https://www.softwarecollections.org).  Anyone know how, if at all, to get this to work with an SCL python?  If not, is it something you would like to support in this module?  I can work on a PR if would be useful."},"comment":{"url":"https://api.github.com/repos/stankevich/puppet-python/issues/comments/123301289","html_url":"https://github.com/stankevich/puppet-python/issues/189#issuecomment-123301289","issue_url":"https://api.github.com/repos/stankevich/puppet-python/issues/189","id":123301289,"user":{"login":"sorreltree","id":9455496,"avatar_url":"https://avatars.githubusercontent.com/u/9455496?v=3","gravatar_id":"","url":"https://api.github.com/users/sorreltree","html_url":"https://github.com/sorreltree","followers_url":"https://api.github.com/users/sorreltree/followers","following_url":"https://api.github.com/users/sorreltree/following{/other_user}","gists_url":"https://api.github.com/users/sorreltree/gists{/gist_id}","starred_url":"https://api.github.com/users/sorreltree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorreltree/subscriptions","organizations_url":"https://api.github.com/users/sorreltree/orgs","repos_url":"https://api.github.com/users/sorreltree/repos","events_url":"https://api.github.com/users/sorreltree/events{/privacy}","received_events_url":"https://api.github.com/users/sorreltree/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T13:16:41Z","updated_at":"2015-07-21T13:16:41Z","body":"A few general notes on this that didn't go into the pull request.\r\n\r\nThe pyvenv module appears to insist on creating the target directory for the venv before running the pyvenv command.  This actually breaks pyvenv unless you pass in the --clear or the --update command in python 3.3.  I kludged this by putting --clear in the pyvenv command for scl, but I think it will break for non-scl installs as well.  I'd say a better solution would be to either remove target directory resource or to include --clear in the default command line.\r\n\r\nAdditionally, there doesn't seem to be any order enforced on the creation of the venv, so you can end up with puppet trying to create the venv before the desired python version is installed.  This is of course fixable with the \"play it again, Sam\" method (just run puppet again and it'll do it) but that isn't the nicest of solutions.  I can open these as separate issues, but I wanted to note them as issues with the build here.\r\n\r\nFinally, because of the weird way that RH designed SCL, you still need to either run scl enable or set the environment variables by hand before activating the virtualenv, but that's a \"feature\" of SCL.  I've considered adding an option to modify the activate file to do that automatically (because why not?) but that's a bigger undertaking."}}