{"action":"created","issue":{"url":"https://api.github.com/repos/audreyr/cookiecutter/issues/518","labels_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/518/labels{/name}","comments_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/518/comments","events_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/518/events","html_url":"https://github.com/audreyr/cookiecutter/issues/518","id":107303691,"number":518,"title":"Appveyor integration unexpected result when python version is already installed","user":{"login":"maiksensi","id":6359386,"avatar_url":"https://avatars.githubusercontent.com/u/6359386?v=3","gravatar_id":"","url":"https://api.github.com/users/maiksensi","html_url":"https://github.com/maiksensi","followers_url":"https://api.github.com/users/maiksensi/followers","following_url":"https://api.github.com/users/maiksensi/following{/other_user}","gists_url":"https://api.github.com/users/maiksensi/gists{/gist_id}","starred_url":"https://api.github.com/users/maiksensi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maiksensi/subscriptions","organizations_url":"https://api.github.com/users/maiksensi/orgs","repos_url":"https://api.github.com/users/maiksensi/repos","events_url":"https://api.github.com/users/maiksensi/events{/privacy}","received_events_url":"https://api.github.com/users/maiksensi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-19T01:57:36Z","updated_at":"2015-09-22T12:10:23Z","closed_at":"2015-09-22T12:10:23Z","body":"Hey, \r\n\r\nThis issue will elaborate a bit on an inconvenience I noticed with the appveyor integration: If the enforced python major minor version is already installed, the installed version is used even though another patch version is wanted (say 2.7.9 is installed but 2.7.8 is wanted - the already installed version is used).\r\n\r\nThe way appveyor is setup it is supposed to install an explicit python version:\r\n\r\n    environment:\r\n        matrix:\r\n            - PYTHON: \"C:\\\\Python27\"\r\n              PYTHON_VERSION: \"2.7.8\"\r\n              PYTHON_ARCH: \"32\"\r\n              TOX_ENV: \"py27\"\r\n\r\nbut if the python directory already exists, nothing is installed. Instead the Installation is skipped: \r\n\r\n\tWrite-Host $python_home \"already exists, skipped.\"\r\n\r\nCurrently the installed python 2.7 version on Appveyor machines is 2.7.9:\r\n    \r\n    # Version installed\r\n    %PYTHON%/python -V\r\n    Python 2.7.9\r\n    # Version we actually want \r\n    ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%\r\n    C:\\Python27 2.7.8 32\r\n\r\nA fix would be to delete the existing installation before installing the enforced version and setting $PATH to the specific version, but I think that the appveyor scripts could be cleaned up instead. This is why I'd like to discuss an alternative approach before submitting a PR. \r\nDoes cookiecutter need an explicit enforcement on a specific python version and architecture? \r\nAppveyor is constantly updating the patch and minor versions 2.7,x, 3.3.x, 3.4.x and 3.5.x in the future (32 Bit architecture). This is why I'd suggest to remove the explicit enforcement on patch versions and architecture (32 Bit is installed per default). \r\nTo get an idea on how this would looks please check https://ci.appveyor.com/project/maiksensi/cookiecutter/build/1.0.73 and https://github.com/maiksensi/cookiecutter/blob/feat/appveyor-cleanup/appveyor.yml \r\nNo matter what the outcome of this discussion is, I can supply a PR. \r\nCheers. "},"comment":{"url":"https://api.github.com/repos/audreyr/cookiecutter/issues/comments/142270131","html_url":"https://github.com/audreyr/cookiecutter/issues/518#issuecomment-142270131","issue_url":"https://api.github.com/repos/audreyr/cookiecutter/issues/518","id":142270131,"user":{"login":"hackebrot","id":6024445,"avatar_url":"https://avatars.githubusercontent.com/u/6024445?v=3","gravatar_id":"","url":"https://api.github.com/users/hackebrot","html_url":"https://github.com/hackebrot","followers_url":"https://api.github.com/users/hackebrot/followers","following_url":"https://api.github.com/users/hackebrot/following{/other_user}","gists_url":"https://api.github.com/users/hackebrot/gists{/gist_id}","starred_url":"https://api.github.com/users/hackebrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackebrot/subscriptions","organizations_url":"https://api.github.com/users/hackebrot/orgs","repos_url":"https://api.github.com/users/hackebrot/repos","events_url":"https://api.github.com/users/hackebrot/events{/privacy}","received_events_url":"https://api.github.com/users/hackebrot/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T12:10:23Z","updated_at":"2015-09-22T12:10:23Z","body":"Closing as we merged #523, thanks again :bow: "}}