<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<div>
<div>
<div style="font-family:Calibri,sans-serif; font-size:11pt">"We are calling it 'embedable', but the rest of the world would call it
<br>
'portable', as in, runable from a usb stick"<br>
<br>
I called it embeddable because it's not intended for direct use and is not complete. There's no test suite, no documentation, no tkinter (pending high demand), no pip, no site-packages, and no folder structure. It really is meant to be a component in another
 application that provides the rest of the layout for its own needs. (I probably ought to blog about it so there's at least one detailed example of what it's for...)<br>
<br>
A nice side-effect is that you can make a regular per-user install portable by adding a pyvenv.cfg with "applocal = True", which disables regular path resolution (and also ignores PYTHONPATH, which is a feature or a bug, depending on your point of view). This
 only works on Windows right now, but could probably be ported from getpathp.c into getpath.c easily.<br>
<br>
Cheers,<br>
Steve<br>
<br>
Top-posted from my Windows Phone</div>
</div>
<div dir="ltr">
<hr>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">From:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:tritium-list@sdamon.com">Alexander Walters</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Sent:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">ý5/ý31/ý2015 6:39</span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">To:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt"><a href="mailto:python-dev@python.org">python-dev@python.org</a></span><br>
<span style="font-family:Calibri,sans-serif; font-size:11pt; font-weight:bold">Subject:
</span><span style="font-family:Calibri,sans-serif; font-size:11pt">Re: [Python-Dev] Computed Goto dispatch for Python 2</span><br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">A better course of action would be to deprecate the non-portable
<br>
version.  Other than setting the PATH envvar, why do we need to continue <br>
even touching the system on install?  It is highly annoying for those of <br>
us that maintain several installs of python on a single windows system, <br>
and it really should stop.<br>
<br>
The only use I can think of for ever touching the registry in the first <br>
place is to tell distutils installers where python is.  I can tell you <br>
right now, that design choice is a bug.  There are some mighty hacks you <br>
have to go through to correct that behavior when you happen to be using <br>
a virtualenv.<br>
<br>
(We are calling it 'embedable', but the rest of the world would call it <br>
'portable', as in, runable from a usb stick)<br>
<br>
On 5/31/2015 06:47, Paul Moore wrote:<br>
> On 31 May 2015 at 11:41, Paul Moore <p.f.moore@gmail.com> wrote:<br>
>> On 31 May 2015 at 10:14, Xavier Combelle <xavier.combelle@gmail.com> wrote:<br>
>>>> +1. The new embeddable Python distribution for Windows is a great step<br>
>>>> forward for this. It's not single-file, but it's easy to produce a<br>
>>>> single-directory self-contained application with it. I don't know if<br>
>>>> there's anything equivalent for Linux/OSX - maybe it's something we<br>
>>>> should look at for them as well (although the whole "static binaries"<br>
>>>> concept seems to be fairly frowned on in the Unix world, from what<br>
>>>> I've seen).<br>
>>>><br>
>>> Just curious What is "the new embeddable Python distribution for Windows" ?<br>
>> Python 3.5 ships a zipfile which contains a self-contained Python<br>
>> installation, intended for embedding. The idea is that you unzip it<br>
>> into your application directory, and use it from within your<br>
>> application (either via the embedding API, or using the included<br>
>> python.exe/pythonw.exe). It doesn't use the registry, or any global<br>
>> resources, so it's independent of any installed python that might be<br>
>> present.<br>
> By the way, IMO the new embeddable distribution is a pretty big deal<br>
> on Windows. To make sure that it doesn't end up unnoticed, can I<br>
> suggest we include a prominent "What's New" entry for it, and a<br>
> section in "Python Setup and Usage" under "Using Python on Windows"<br>
> for it?<br>
><br>
> I'd hate to find that 3 or 4 versions from now, we're still trying to<br>
> remind people that they can use the embeddable distribution, in the<br>
> same way that executable zipfiles ended up an almost unknown feature<br>
> for ages.<br>
><br>
> Paul<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> Python-Dev@python.org<br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/tritium-list%40sdamon.com">
https://mail.python.org/mailman/options/python-dev/tritium-list%40sdamon.com</a><br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
Python-Dev@python.org<br>
<a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com">
https://mail.python.org/mailman/options/python-dev/steve.dower%40microsoft.com</a><br>
</div>
</span></font>
</body>
</html>