Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Does anyone have an activate script for portable python?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


gelonida at gmail

Aug 11, 2012, 4:09 PM

Post #1 of 5 (192 views)
Permalink
Does anyone have an activate script for portable python?

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.



--
http://mail.python.org/mailman/listinfo/python-list


wuwei23 at gmail

Aug 12, 2012, 5:12 PM

Post #2 of 5 (187 views)
Permalink
Re: Does anyone have an activate script for portable python? [In reply to]

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.
--
http://mail.python.org/mailman/listinfo/python-list


maniandram01 at gmail

Aug 13, 2012, 8:30 AM

Post #3 of 5 (186 views)
Permalink
Re: Does anyone have an activate script for portable python? [In reply to]

PS:virtualenv is added to the stdlib in Python 3.3

On 13 August 2012 05:42, alex23 <wuwei23 [at] gmail> 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.
> --
> http://mail.python.org/mailman/listinfo/python-list
>


gelonida at gmail

Aug 13, 2012, 12:15 PM

Post #4 of 5 (183 views)
Permalink
Re: Does anyone have an activate script for portable python? [In reply to]

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.
--
http://mail.python.org/mailman/listinfo/python-list


gelonida at gmail

Aug 13, 2012, 12:15 PM

Post #5 of 5 (183 views)
Permalink
Re: Does anyone have an activate script for portable python? [In reply to]

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.

--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.