Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'repository': 0.05; 'subject:Python': 0.06; 'binary': 0.07; 'dev': 0.07; 'committing': 0.09; 'deploy': 0.09; 'subject:modules': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'bug': 0.12; 'changes': 0.15; 'clone': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'new;': 0.16; 'reasonably': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'commit': 0.19; 'deployment': 0.19; 'things.': 0.19; 'machine': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'source': 0.25; 'changes,': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'patch': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'that.': 0.31; '(maybe': 0.31; 'along.': 0.31; 'overhead': 0.31; 'run': 0.32; 'usual': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'really': 0.36; 'application': 0.37; 'depends': 0.38; 'easiest': 0.38; 'nov': 0.38; 'files': 0.38; 'release': 0.40; 'even': 0.60; 'easy': 0.60; 'tag': 0.61; 'new': 0.61; 'simple': 0.61; "you're": 0.61; 'different': 0.65; 'smith': 0.68; 'history,': 0.84; 'system),': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=t2qna/cI4FPD/QOTBGdk6qJxDk11+vmkmN8kt52wyB4=; b=KbgC0m86FiFsgRecHaLwWqfgvrpr1m0vt+sz0wghBPgcY0wruK/uFzEF2EcJnDclA9 gpOmoq+dwXN5rrhObr9EQim/1DRV1NmkX2EgD1e3T7dN/wBKu7QMJDpmh7LAJj2cMf2w 71ETQn/aBCC0vewT2jemPDlMOhRmg8qzQMNWHPydmb+EWnGSbCvCOymgmOx43M51gQHC u6ArCWy6flTym6L7WmIezSN7cC/oDOKT+FdUjjHLTxqdDtb5QnzNWExJ/pwvX9QW/J7i eO4kpjWiIVaOMUlqIWIsWcd9XzPmXiASQKWV+PIhXyp5z/kk75MxXIbWVLwl0/qtDroc +zLQ== MIME-Version: 1.0 X-Received: by 10.50.136.134 with SMTP id qa6mr25104940igb.2.1415627351264; Mon, 10 Nov 2014 05:49:11 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Nov 2014 00:49:11 +1100 Subject: Re: Python modules From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415627354 news.xs4all.nl 2970 [2001:888:2000:d::a6]:52288 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80463 On Tue, Nov 11, 2014 at 12:36 AM, Roy Smith 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