Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #80453

Re: Python modules

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Python modules
Date 2014-11-10 18:48 +1100
References <i0h06a9pj8h3olo5rnrgc64i7ckpvtvti6@4ax.com> <mailman.15614.1415596346.18130.python-list@python.org> <u7o06alk649o4r41bur4kacg4ra8k3boeq@4ax.com>
Newsgroups comp.lang.python
Message-ID <mailman.15615.1415605702.18130.python-list@python.org> (permalink)

Show all headers | View raw


Steve Hayes <hayesstw@telkomsa.net> 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’ <URL:https://rsync.samba.org/> for simple
cases.

For more complex cases, look into Python's distribution and packaging
tools <URL:https://python-packaging-user-guide.readthedocs.org/>.

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

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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