Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.138.MISMATCH!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed4.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; 'subject:Python': 0.06; 'steve': 0.09; 'executable': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:modules': 0.09; '\xe2\x80\x94': 0.09; 'python': 0.11; 'finney': 0.16; 'hayes': 0.16; 'hierarchy': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'code.': 0.18; 'deployment': 0.19; 'packages.': 0.19; "python's": 0.19; '(the': 0.22; 'header:User-Agent:1': 0.23; 'diverse': 0.24; 'tend': 0.24; 'compiled': 0.26; 'header:X -Complaints-To:1': 0.27; 'generally': 0.29; 'code': 0.31; 'writes:': 0.31; 'run': 0.32; 'another': 0.32; '(e.g.': 0.33; 'cases': 0.33; 'packaging': 0.33; 'url:org': 0.36; 'operating': 0.37; 'ben': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'aspects': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'even': 0.60; 'most': 0.60; 'simple': 0.61; 'more': 0.64; 'different': 0.65; 'god': 0.65; 'pray': 0.84; 'received:125': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: Python modules Date: Mon, 10 Nov 2014 18:48:04 +1100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:4+ndISkmBJ6wi+FO8YWndX1WRpA= 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: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415605702 news.xs4all.nl 2942 [2001:888:2000:d::a6]:56950 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 4270 X-Received-Body-CRC: 3308327220 Xref: csiph.com comp.lang.python:80453 Steve Hayes writes: > So if I want to run it on another computer, where do I look for the > compiled executable program to copy? You generally don't do that (the compiled files tend to be specific to various aspects of the target platform). This is a way that i's important to remember that most Python interpreters require compiled Python code. Instead, to have a Python program run on a different computer, the files to copy are the *source* files — preferably, in the hierarchy those files expect. You can do this with ‘rsync’ for simple cases. For more complex cases, look into Python's distribution and packaging tools . For even more complex cases (e.g. where the Python code is only part of a more diverse code base), look into deployment systems and operating system packages. -- \ “When we pray to God we must be seeking nothing — nothing.” | `\ —Francis of Assisi | _o__) | Ben Finney