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


Groups > comp.lang.python > #95976

Re: Porting Python Application to a new linux machine

Path csiph.com!news.swapon.de!newsreader4.netcologne.de!news.netcologne.de!bcyclone01.am1.xlned.com!bcyclone01.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <lac@openend.se>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'cc:addr:python-list': 0.09; 'scripts': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'url:github': 0.09; 'advance': 0.10; 'python': 0.10; 'thu,': 0.15; "'my": 0.16; '>in': 0.16; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'pyinstaller': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'url:pyinstaller': 0.16; 'url:virtualenv': 0.16; 'virtualenv.': 0.16; 'laura': 0.18; 'runs': 0.18; 'all,': 0.20; 'library': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'machine': 0.21; 'cc:2**1': 0.22; 'libraries': 0.22; 'ones.': 0.22; 'see:': 0.22; 'sep': 0.22; 'install': 0.25; "i've": 0.25; '(which': 0.26; 'linux': 0.26; '-0700,': 0.29; 'received:se': 0.29; 'cc:no real name:2**1': 0.29; 'that.': 0.30; 'url:wiki': 0.30; 'says': 0.32; 'help,': 0.32; 'run': 0.33; 'problem': 0.33; 'gets': 0.35; 'ones': 0.35; 'could': 0.35; 'done': 0.35; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'setting': 0.37; 'things': 0.38; 'wrong': 0.38; 'several': 0.38; 'files': 0.38; 'shared': 0.38; 'url:en': 0.39; 'still': 0.40; 'your': 0.60; 'skip:u 10': 0.61; 'header :Message-Id:1': 0.61; 'here.': 0.62; 'different': 0.63; 'capable': 0.65; 'soon': 0.65; 'approaches': 0.72; '>how': 0.84; 'header:In- reply-to:1': 0.84; 'url:readthedocs': 0.84; 'url:latest': 0.91
To Heli Nix <hemla21@gmail.com>
cc python-list@python.org, lac@openend.se
From Laura Creighton <lac@openend.se>
Subject Re: Porting Python Application to a new linux machine
In-reply-to <4d764608-4091-4600-a1ed-ac11bd790792@googlegroups.com>
References <4d764608-4091-4600-a1ed-ac11bd790792@googlegroups.com>
Comments In-reply-to Heli Nix <hemla21@gmail.com> message dated "Thu, 03 Sep 2015 07:32:55 -0700."
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-ID <2747.1441319206.1@fido>
Content-Transfer-Encoding quoted-printable
Date Fri, 04 Sep 2015 00:26:46 +0200
X-Greylist Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [89.233.217.130]); Fri, 04 Sep 2015 00:26:48 +0200 (CEST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.100.1441319220.8327.python-list@python.org> (permalink)
Lines 50
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441319220 news.xs4all.nl 23748 [2001:888:2000:d::a6]:43866
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 5113
X-Received-Body-CRC 3873490909
Xref csiph.com comp.lang.python:95976

Show key headers only | View raw


In a message of Thu, 03 Sep 2015 07:32:55 -0700, Heli Nix writes:
>Dear all, 
>
>I have my python scripts that use several python libraries such as h5py, pyside, numpy.... 
>
>In Windows I have an installer that will install python locally on user machine and so my program gets access to this local python and runs successfully. 
>
>How can I do this in Linux ? ( I want to install python plus my program on the user machine.) I do not want to use the user´s python or to install python on the user´s machine on root. 
>
>Thanks in Advance for your help, 

There are several approaches here.  One is to get your users to
run things in a virtualenv.

see:https://virtualenv.pypa.io/en/latest/
and
https://virtualenvwrapper.readthedocs.org/en/latest/

This works really well, but you have to have users who are
capable of setting up a virtualenv in the first place.
You will still run into problems of 'my shared library is
different from your shared library'.

YOu can also use PyInstaller (which you may have used to make
windows binaries) to make linux ones.  I've never done this, only
made windows ones -- but that is what it says on the label.
https://github.com/pyinstaller/pyinstaller/wiki

I think you will still have to have a set of different files to
download for different linux distributions, but I could be wrong
about that.

And if that problem is unacceptable, then you need docker.
https://www.docker.com/

I've just started playing with it, and I think it is really neat,
but it is too soon for me to have any clue what the problems/tradeoffs
are with it.

Laura

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


Thread

Porting Python Application to a new  linux machine Heli Nix <hemla21@gmail.com> - 2015-09-03 07:32 -0700
  Re: Porting Python Application to a new linux machine Joel Goldstick <joel.goldstick@gmail.com> - 2015-09-03 11:27 -0400
  Re: Porting Python Application to a new linux machine Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-03 17:31 +0200
    Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 01:39 +1000
    Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 01:55 +1000
    Re: Porting Python Application to a new linux machine Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-03 18:23 +0200
      Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 02:49 +1000
        Re: Porting Python Application to a new linux machine Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-09-03 19:29 +0200
          Re: Porting Python Application to a new linux machine Chris Angelico <rosuav@gmail.com> - 2015-09-04 03:33 +1000
  Re: Porting Python Application to a new linux machine Laura Creighton <lac@openend.se> - 2015-09-04 00:26 +0200
  Re: Porting Python Application to a new  linux machine Christian Gollwitzer <auriocus@gmx.de> - 2015-09-04 07:43 +0200
    Re: Porting Python Application to a new  linux machine Grant Edwards <invalid@invalid.invalid> - 2015-09-04 13:16 +0000
  PyInstaller+ Python3.5 (h5py import error) Heli Nix <hemla21@gmail.com> - 2015-09-23 09:20 -0700
    Re: PyInstaller+ Python3.5 (h5py import error) Christian Gollwitzer <auriocus@gmx.de> - 2015-09-23 20:07 +0200
      Re: PyInstaller+ Python3.5 (h5py import error) Heli Nix <hemla21@gmail.com> - 2015-09-24 02:58 -0700
        Re: PyInstaller+ Python3.5 (h5py import error) Laura Creighton <lac@openend.se> - 2015-09-24 13:11 +0200
          Re: PyInstaller+ Python3.5 (h5py import error) Hedieh E <hemla21@gmail.com> - 2015-09-25 01:53 -0700

csiph-web