Deploy python app and as part of process install python, git, virtualenv on windows -
how have self contained setup file following processes...
- install python 2.7 (it download/launch python installer doesn't have automate , launch it)
- install git (same above)
- install pip
- install python virtualenv
- clone repo
- create virtualenv
- activate virtualenv
- pip install requirements folder
- create desktop shortcut
i not looking how trying save myself 100 steps when deploy app have finished. before write custom scripts wanted make sure there wasn't tool or best practice handle kind of setup process.
in past have frozen apps , deployed them exe using setup wizard inno idea of dropping repo on users machine , letting app pull master when new release comes out without having repackage , distribute exe each time.
my other thought maybe turn entire thing egg , deploy python package installed pip using git repo. seems best bet still leaves me installing requirements. other downside lose virtualenv updating app egg update requirements in users main python lib , doesn't sit me.
the app updates based comparing local version number , corresponding database version number. if don't match git pulls changes , runs pip install -r requirements.txt catch new packages may needed.
we done similar this. here's did. create installer (we used nsis http://nsis.sourceforge.net/main_page) installs python. after python installed, run python script performs rest of steps.
once have python on target, rest of steps piece of cake.