Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80463
| References | <i0h06a9pj8h3olo5rnrgc64i7ckpvtvti6@4ax.com> <roy-86BB5A.08362410112014@news.panix.com> |
|---|---|
| Date | 2014-11-11 00:49 +1100 |
| Subject | Re: Python modules |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15622.1415627354.18130.python-list@python.org> (permalink) |
On Tue, Nov 11, 2014 at 12:36 AM, Roy Smith <roy@panix.com> wrote: > Yes, exactly. When you deploy your application someplace, you need to > include all the things it depends on. In the simple case of a few > python files (say, a main program and a few modules that you're > written), the easiest thing to do might be to just clone your source > repository on the other machine and run it directly from that. Even in less simple cases, that's often a good way to run things. As long as your source repo has no large binary files in it, it'll be reasonably small; for 400KB of source code and ~1600 commits spanning ~3 years of history, around about 2MB. When your deployment is a source clone, it's really easy to pull changes and see what's new; and if you ever find a bug on a deployment machine (maybe a different OS from your usual dev system), you can make a patch right there and send it along. There's no huge "okay, let's make a new release now" overhead - you just keep committing (maybe pushing) changes, same as you do any other time, and perhaps tag some commit with a version number. Very very easy. I recommend it. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Python modules Steve Hayes <hayesstw@telkomsa.net> - 2014-11-10 06:55 +0200
Re: Python modules Deepfriedice <Deepfriedice@openmailbox.org> - 2014-11-10 14:55 +1000
Re: Python modules Ben Finney <ben+python@benfinney.id.au> - 2014-11-10 16:12 +1100
Re: Python modules Steve Hayes <hayesstw@telkomsa.net> - 2014-11-10 08:58 +0200
Re: Python modules Ben Finney <ben+python@benfinney.id.au> - 2014-11-10 18:48 +1100
Re: Python modules Roy Smith <roy@panix.com> - 2014-11-10 08:36 -0500
Re: Python modules Chris Angelico <rosuav@gmail.com> - 2014-11-11 00:49 +1100
Re: Python modules Will Acheson <willyach07@gmail.com> - 2014-11-11 12:06 -0800
Re: Python modules Ben Finney <ben+python@benfinney.id.au> - 2014-11-12 09:18 +1100
csiph-web