From: Pietro Campesato on
Hi,
recently I've been wondering how to roll my own portable python 3.1
(since there seems to be no portable app specifically for this
version). Thinking you can just copy your install folder (+ python's
dll), I've noticed that there seems to be no python31.dll in my
systems folder (c:\windows\system32\).

I cannot find the dll inside the python installation folder either.
Another reason I'm asking is because what I've found on the net so far
tells you to look for this dll specifically. Am I missing something?

Thanks,
Alex

PS: my setup is version 3.1.2 on windows vista
From: Terry Reedy on
On 5/5/2010 1:26 PM, Pietro Campesato wrote:
> Hi,
> recently I've been wondering how to roll my own portable python 3.1
> (since there seems to be no portable app specifically for this
> version). Thinking you can just copy your install folder (+ python's
> dll), I've noticed that there seems to be no python31.dll in my
> systems folder (c:\windows\system32\).

That is where it is on my WinXP system, installed for all users.

> I cannot find the dll inside the python installation folder either.
> Another reason I'm asking is because what I've found on the net so far
> tells you to look for this dll specifically. Am I missing something?

Your windows search command?
Which is how I verified the above.


From: Christian Heimes on
Am 05.05.2010 19:26, schrieb Pietro Campesato:
> Hi,
> recently I've been wondering how to roll my own portable python 3.1
> (since there seems to be no portable app specifically for this
> version). Thinking you can just copy your install folder (+ python's
> dll), I've noticed that there seems to be no python31.dll in my
> systems folder (c:\windows\system32\).
>
> I cannot find the dll inside the python installation folder either.
> Another reason I'm asking is because what I've found on the net so far
> tells you to look for this dll specifically. Am I missing something?

It's trivial to roll your own portable bundle of Python that doesn't
installation. All you need is an installation "for me" instead of an
installation for all users. When you install Python just for the current
user all necessary files land in the installation directory -- including
the main dll and msvcrt stuff. Note that some features like COM and
Windows Services require some dependencies in the system32 directory.

Christian

From: Pietro Campesato on
> Your windows search command?
> Which is how I verified the above.

I looked at the folder visually. Simply using os.listdir shows there
is in fact a python31.dll there: somehow it was an invisible file.
This is strange since I've never touched any system folder. Thanks and
forgive me if I have asked the group a silly question.
From: Dave Angel on
Pietro Campesato wrote:
>> Your windows search command?
>> Which is how I verified the above.
>>
>
> I looked at the folder visually. Simply using os.listdir shows there
> is in fact a python31.dll there: somehow it was an invisible file.
> This is strange since I've never touched any system folder. Thanks and
> forgive me if I have asked the group a silly question.
>
>
"visually"? Lots of possibilities there. And if you're not sure, you
need to get familiar with Windows quirks.

IF you're using Explorer, there are a few ways you could miss a single
file out of thousands.

Simplest is that the listing is not necessarily completely sorted. You
need to do a View->ArrangeIconsBy->Name
to really trust that they're sorted today. And you may have to repeat
that menu again next time you launch Explorer, or even next time you
look at some other directory.

Next is that Explorer is initialized by Microsoft to mostly use the
worst possible defaults. One is to hide system and hidden files
.. Another is to hide extensions of known types. Either of these could
make you overlook the file.

HTH
DaveA