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


Groups > comp.lang.python > #26925 > unrolled thread

Does anyone have an activate script for portable python?

Started byGelonida N <gelonida@gmail.com>
First post2012-08-12 01:09 +0200
Last post2012-08-13 21:15 +0200
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Does anyone have an activate script for portable python? Gelonida N <gelonida@gmail.com> - 2012-08-12 01:09 +0200
    Re: Does anyone have an activate script for portable python? alex23 <wuwei23@gmail.com> - 2012-08-12 17:12 -0700
      Re: Does anyone have an activate script for portable python? Gelonida N <gelonida@gmail.com> - 2012-08-13 21:15 +0200

#26925 — Does anyone have an activate script for portable python?

FromGelonida N <gelonida@gmail.com>
Date2012-08-12 01:09 +0200
SubjectDoes anyone have an activate script for portable python?
Message-ID<mailman.3197.1344726587.4697.python-list@python.org>
Hi,


In Pythons installed with virtualenv there is on windows an activate.bat 
script, that can be used to setup the cmd-shell such, that the search 
path for python and pythor elated tools (pip / easy_install) is setup 
properly.

Further there is the deactivate script to set the environment back to 
it's state before calling activate.

Do such a scripts also exist for Portable python?


If anybody wrote already such scripts, then couldn't they be added to 
the official portable python release?

I never used portable python so far but can't imagine, that I'm the only 
one who'd like such a script.


[toc] | [next] | [standalone]


#26963

Fromalex23 <wuwei23@gmail.com>
Date2012-08-12 17:12 -0700
Message-ID<e88b9e31-a3ef-4ea9-9ad7-d8469e883017@c4g2000pbw.googlegroups.com>
In reply to#26925
On Aug 12, 9:09 am, Gelonida N <gelon...@gmail.com> wrote:
> In Pythons installed with virtualenv there is on windows an activate.bat
> script, that can be used to setup the cmd-shell such, that the search
> path for python and pythor elated tools (pip / easy_install) is setup
> properly.
> Do such a scripts also exist for Portable python?


Portable Python is just Python with some helper scripts for not
requiring a system installation.

So "command-line-command-to-run-portable-python virtualenv <venv-
name>" should be all you need.

[toc] | [prev] | [next] | [standalone]


#27004

FromGelonida N <gelonida@gmail.com>
Date2012-08-13 21:15 +0200
Message-ID<mailman.3241.1344885370.4697.python-list@python.org>
In reply to#26963
On 08/13/2012 02:12 AM, alex23 wrote:
> On Aug 12, 9:09 am, Gelonida N <gelon...@gmail.com> wrote:
>> In Pythons installed with virtualenv there is on windows an activate.bat
>> script, that can be used to setup the cmd-shell such, that the search
>> path for python and pythor elated tools (pip / easy_install) is setup
>> properly.
>> Do such a scripts also exist for Portable python?
>
>
> Portable Python is just Python with some helper scripts for not
> requiring a system installation.
>
> So "command-line-command-to-run-portable-python virtualenv <venv-
> name>" should be all you need.
>
Hmm I guess I didn't express myself very well.

The idea is to easily create a cmd window, that the path is setup in 
order to point to portably python by default.

At a first glance at Portable Python it seemed to me, that this doesn't 
exist.

Having a small icon to click at, that opens a cmd window with the right 
setup or just a .bat file, that could be called to adapt the setup of an 
existing cmd window.


It's not too difficult to write such scipts, but I though it would be 
interesting to see whether I'm the only one missing such feature in 
portable Python.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web