You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Роман Донченко <DX...@yandex.ru> on 2009/04/14 23:31:17 UTC

Win32 Python binding libraries still have .dll extension

Hello,

I downloaded the Python 2.6 bindings for 1.6.1 yesterday, [1] to be  
precise. Upon testing the bindings they were summarily determined not to  
work. 8=] After some research I found that the binary modules in the  
distribution have the .dll extension, while Python only looks for .pyd  
since version 2.5. When I renamed *.dll to *.pyd, the modules worked as  
expected.

Now, I see this issue have already been brought up on this list a few  
times ([2] [3]) but it doesn't look like the situation changed. It's kind  
of inconvenient and unobvious, so I supposed I'd nag you one more time  
with it. 8=]

Roman.

[1]  
http://subversion.tigris.org/files/documents/15/45608/svn-win32-1.6.1_py26.zip
[2] http://svn.haxx.se/dev/archive-2007-06/0181.shtml
[3] http://svn.haxx.se/dev/archive-2008-07/0736.shtml

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1717765

Re: Win32 Python binding libraries still have .dll extension

Posted by Роман Донченко <DX...@yandex.ru>.
D.J. Heap <dj...@gmail.com> писал(а) в своём письме Wed, 15 Apr 2009  
06:42:42 +0400:

> That is what the bindings installer is for...why not use it?

Let's just say I'm allergic to installers.

> Or a patch to the build or packaging scripts to handle it would be  
> happily reviewed for application as well...

I'll see if I can find time for that.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1728449


Re: Win32 Python binding libraries still have .dll extension

Posted by Роман Донченко <DX...@yandex.ru>.
Gavin 'Beau' Baumanis <ga...@thespidernet.com> писал(а) в своём письме  
Sun, 10 May 2009 16:07:06 +0400:

> Hi Roman,
>
> At the risk of looking stupid....
> I have to ask.
>
> Is there anything more to do with this thread?
> Do I have this (the following) right?
>
> 1) your code was committed

Negative. I didn't post any code.

> 2) your chasing a response about the README requiring updates?

Positive, sort of. I haven't yet produced a patch that accurately  
describes the contents of the current installer, mostly because of lack of  
enthusiasm and because I wasn't sure which of the files are actually  
required.

E.g. the installer ships with libsasl.dll, but SASL is listed as optional  
in the INSTALL document. On the other hand, OpenSSL is optional too but is  
listed in the current version of the document. Maybe we should just make  
the list identical to what the official installer uses and then amend the  
wording to say that this is only a demonstration of the required layout,  
not the required files list. This seems more future-proof.

If there is interest, I can make such a patch.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2169212


Re: Win32 Python binding libraries still have .dll extension

Posted by Gavin Baumanis <ga...@thespidernet.com>.
Hi Roman,

At the risk of looking stupid....
I have to ask.

Is there anything more to do with this thread?
Do I have this (the following) right?

1) your code was committed
2) your chasing a response about the README requiring updates?


Gavin.


On 29/04/2009, at 5:02 AM, Роман Донченко wrote:

> Branko Čibej <br...@xbc.nu> писал в своём письме  
> Tue, 28 Apr 2009 05:41:51
> +0400:
>
>> Роман Донченко wrote:
>>> Branko Čibej <br...@xbc.nu> писал в своём письме  
>>> Sat, 25 Apr 2009
>>> 10:34:29
>>> +0400:
>>>
>>>> Um, half of this patch is already on trunk. Are you sure you're  
>>>> looking
>>>> at the latest sources?
>>>>
>>>> -- Brane
>>>>
>>>
>>> I'm looking at
>>>
>>> http://svn.collab.net/repos/svn/trunk/packages/python-windows/README.txt
>>>
>>> It doesn't look like anything changed.
>>
>> You have a patch for packages/python-windows/setup.py in there.
>>
>
> Ah, that. No, that was an excerpt from Marc's patch that the "Won't  
> that
> exclude the non-module DLLs from the installer?" part was referring  
> to.
>
> Back to my previous post, I found the answer to the point 1.  
> Apparently,
> Subversion 1.4.x libs were linked statically so there were no such  
> DLLs.
> Now there are, so the README needs to be modified accordingly. Right?
>
> Roman.
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1967242

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2168192


Re: Win32 Python binding libraries still have .dll extension

Posted by Роман Донченко <DX...@yandex.ru>.
Branko Čibej <br...@xbc.nu> писал в своём письме Tue, 28 Apr 2009 05:41:51  
+0400:

> Роман Донченко wrote:
>> Branko Čibej <br...@xbc.nu> писал в своём письме Sat, 25 Apr 2009
>> 10:34:29
>> +0400:
>>
>>> Um, half of this patch is already on trunk. Are you sure you're looking
>>> at the latest sources?
>>>
>>> -- Brane
>>>
>>
>> I'm looking at
>>
>> http://svn.collab.net/repos/svn/trunk/packages/python-windows/README.txt
>>
>> It doesn't look like anything changed.
>
> You have a patch for packages/python-windows/setup.py in there.
>

Ah, that. No, that was an excerpt from Marc's patch that the "Won't that  
exclude the non-module DLLs from the installer?" part was referring to.

Back to my previous post, I found the answer to the point 1. Apparently,  
Subversion 1.4.x libs were linked statically so there were no such DLLs.  
Now there are, so the README needs to be modified accordingly. Right?

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1967242


Re: Win32 Python binding libraries still have .dll extension

Posted by Branko Cibej <br...@xbc.nu>.
Роман Донченко wrote:
> Branko Čibej <br...@xbc.nu> писал в своём письме Sat, 25 Apr 2009
> 10:34:29
> +0400:
>
>> Um, half of this patch is already on trunk. Are you sure you're looking
>> at the latest sources?
>>
>> -- Brane
>>
>
> I'm looking at
>
> http://svn.collab.net/repos/svn/trunk/packages/python-windows/README.txt
>
> It doesn't look like anything changed.

You have a patch for packages/python-windows/setup.py in there.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1955657


Re: Win32 Python binding libraries still have .dll extension

Posted by Роман Донченко <DX...@yandex.ru>.
Branko Čibej <br...@xbc.nu> писал в своём письме Sat, 25 Apr 2009 10:34:29
+0400:

> Um, half of this patch is already on trunk. Are you sure you're looking
> at the latest sources?
>
> -- Brane
>

I'm looking at

http://svn.collab.net/repos/svn/trunk/packages/python-windows/README.txt

It doesn't look like anything changed.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1915468


Re: Win32 Python binding libraries still have .dll extension

Posted by Branko Cibej <br...@xbc.nu>.
Роман Донченко wrote:
> Роман Донченко <DX...@yandex.ru> писал в своём письме Fri, 17 Apr 2009  
> 23:41:26 +0400:
>
>   
>> I also notice that that README mentions libapr{,iconv,util}.dll, whereas
>> the libraries in the core distribution are libapr{,iconv,util}-1.dll. I
>> don't know which version does the current bindings installer actually 
>> use, but perhaps someone does.
>>     
>
> Okay, I checked the installer and it indeed uses the "-1" versions. I  
> modified the patch accordingly. However, other issues left me kind of  
> stumped...
>   

Um, half of this patch is already on trunk. Are you sure you're looking
at the latest sources?

-- Brane

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1905575


Re: Win32 Python binding libraries still have .dll extension

Posted by Роман Донченко <DX...@yandex.ru>.
Роман Донченко <DX...@yandex.ru> писал в своём письме Fri, 17 Apr 2009  
23:41:26 +0400:

> I also notice that that README mentions libapr{,iconv,util}.dll, whereas
> the libraries in the core distribution are libapr{,iconv,util}-1.dll. I
> don't know which version does the current bindings installer actually 
> use, but perhaps someone does.

Okay, I checked the installer and it indeed uses the "-1" versions. I  
modified the patch accordingly. However, other issues left me kind of  
stumped...

1) The "required files" list does not include the Subversion libraries  
themselves, prompting to question its validity even for 1.4.0. Does  
setup.py pull them from somewhere else? I doubt that.
2) setup.py still has 1.4.0 as the version. So it's either not used to  
package the newer bindings, or the newer bindings have the wrong version  
number.
3)

Index: packages/python-windows/setup.py
===================================================================
--- packages/python-windows/setup.py    (revision 37330)
+++ packages/python-windows/setup.py    (revision 37331)
@@ -22,4 +22,4 @@
         url = "http://subversion.tigris.org",
         version = "1.4.0",
         packages = ["libsvn", "svn"],
-       package_data = {"libsvn": ["*.dll"]})
+       package_data = {"libsvn": ["*.pyd"]})

Won't that exclude the non-module DLLs from the installer?

I'll probably refrain from making other changes to the README until  
someone sheds some light on these.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1898759

Re: Win32 Python binding libraries still have .dll extension

Posted by Branko Cibej <br...@xbc.nu>.
Роман Донченко wrote:
> -List of required files (as of Subversion 1.4.0)
> +List of required files (as of Subversion 1.6.1)

Actually, that would be "as of Subversion 1.7.0" unless you want to
propose the change for backport to 1.6.x.

-- Brane

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1853158


Re: Win32 Python binding libraries still have .dll extension

Posted by Роман Донченко <DX...@yandex.ru>.
Branko Cibej <br...@xbc.nu> писал(а) в своём письме Fri, 17 Apr 2009
21:41:00 +0400:
> Committed with tweaks (e.g., a changed setup.py for Windows) in r37331.
> Thanks!

I suppose the accompanying documentation should be adjusted too (attached
is a patch to /packages/python-windows/README.txt). I took the liberty of
setting svn:eol-style, bumping the version number and adding libsvn_diff
as well.

I also notice that that README mentions libapr{,iconv,util}.dll, whereas
the libraries in the core distribution are libapr{,iconv,util}-1.dll. I
don't know which version does the current bindings installer actually use,
but perhaps someone does.

Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1773657

Re: Win32 Python binding libraries still have .dll extension

Posted by Branko Cibej <br...@xbc.nu>.
Marc Haesen wrote:
>
> I am using the attached patch for generating the python bindings with
> .pyd extensions in windows.
>

Committed with tweaks (e.g., a changed setup.py for Windows) in r37331.
Thanks!

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1771614

RE: Win32 Python binding libraries still have .dll extension

Posted by Marc Haesen <ma...@oneaccess-net.com>.
I am using the attached patch for generating the python bindings with .pyd extensions in windows.

 

Regards,

Marc

 

________________________________

From: D.J. Heap [mailto:djheap@gmail.com] 
Sent: 15 April 2009 04:43
To: Роман Донченко
Cc: dev@subversion.tigris.org
Subject: Re: Win32 Python binding libraries still have .dll extension

 

2009/4/14 Роман Донченко <DX...@yandex.ru>

Hello,

I downloaded the Python 2.6 bindings for 1.6.1 yesterday, [1] to be
precise. Upon testing the bindings they were summarily determined not to
work. 8=] After some research I found that the binary modules in the
distribution have the .dll extension, while Python only looks for .pyd
since version 2.5. When I renamed *.dll to *.pyd, the modules worked as
expected.

Now, I see this issue have already been brought up on this list a few
times ([2] [3]) but it doesn't look like the situation changed. It's kind
of inconvenient and unobvious, so I supposed I'd nag you one more time
with it. 8=]

 

 

 

That is what the bindings installer is for...why not use it?  Or a patch to the build or packaging scripts to handle it would be happily reviewed for application as well...

 

DJ

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1762372

Re: Win32 Python binding libraries still have .dll extension

Posted by "D.J. Heap" <dj...@gmail.com>.
2009/4/14 Роман Донченко <DX...@yandex.ru>

> Hello,
>
> I downloaded the Python 2.6 bindings for 1.6.1 yesterday, [1] to be
> precise. Upon testing the bindings they were summarily determined not to
> work. 8=] After some research I found that the binary modules in the
> distribution have the .dll extension, while Python only looks for .pyd
> since version 2.5. When I renamed *.dll to *.pyd, the modules worked as
> expected.
>
> Now, I see this issue have already been brought up on this list a few
> times ([2] [3]) but it doesn't look like the situation changed. It's kind
> of inconvenient and unobvious, so I supposed I'd nag you one more time
> with it. 8=]
>



That is what the bindings installer is for...why not use it?  Or a patch to
the build or packaging scripts to handle it would be happily reviewed for
application as well...

DJ

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1719947