Re: [Twisted-Python] 16.0.0 32-bit wheels for Windows

2016-03-31 Thread anatoly techtonik
On Wed, Mar 30, 2016 at 9:27 PM, Chris Norman
 wrote:
> Hi,
>
> On 30/03/2016 19:20, anatoly techtonik wrote:
>>
>> Hi,
>>
>> I am having the same problem as this guy:
>>
>> https://stackoverflow.com/questions/36279141/pip-doesnt-install-twisted-on-windows
>> Absence of 32-bit wheels breaks Python
>> projects that added Twisted>10 as a
>> dependency, for example.
>>
>> Is that intentional change?
>> https://pypi.python.org/pypi/Twisted/16.0.0
>
> No clue about any change, but which Python version are you using?
>
> I have happily `pip install`ed twisted on Windows 10 (64 bit) with 32 bit
> Python 3.5.1, and 2.7.11.

32-bit Python 2.7.11, but the problem is that I don't have MSVS installed.

> Only place where I had trouble was Debian 64 bit where a simple python
> setup.py installed did the trick.
>
> Sorry you're having trouble.

I installed the stuff manually. Just wanted to warn that there might be a
bigger problem with that. Glad that it could be fixed.

-- 
anatoly t.

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Windows spawnProcess - Child process inherits files and sockets (POSIX does not)

2016-03-31 Thread Glyph
On Feb 21, 2016, at 7:14 PM, exvito here  wrote:
> 
> Hello all,
> 
> I filed https://twistedmatrix.com/trac/ticket/7970 
>  last summer while focused on a 
> particular project that was hit by it. Since then I had to attend to other 
> things and I'm now back to refocusing on that project.

Thanks for following up.  Sorry I've taken so long to respond; this is a highly 
complex issue that is tempting to just punt on thinking about.  But we really 
should address it, and thank you for writing a great bug report.

> Before submitting a patch for review, I'm looking for preliminary feedback, 
> assuming you agree that the Windows vs POSIX semantics should be the same (if 
> not, why?).

After much thought: Yes.  They should be the same.  The reason they're not is 
largely ignorance of the relevant APIs and abstractions on Windows, not any 
desire that they differ.  The one place they have to differ a little bit is 
handle inheritance: we need to figure out some way to express the 'childFDs' 
mapping in terms of both file descriptors and handles.

> My patch calls a few Windows APIs via ctypes, however, as far as I can tell, 
> Twisted on Windows requires pywin32 and, recently, there has been some 
> discussion around dropping that dependency and moving towards something based 
> on cffi.

ctypes is dangerous and error-prone.  If you screw up the bit-width of a type, 
or the type in a header changes on some future version, ctypes gives you no way 
of finding out until some poor user's process segfaults, and usually not at the 
relevant call site.  So we'd prefer not to maintain more ctypes-using code.

The APIs in pywin32 very closely mirror the underlying Windows API, so for 
addressing this issue, please just go ahead and use pywin32 APIs; porting them 
to a new API along with everything else should be relatively straightforward.

If we do move forward with that change, we will probably use 
https://pypi.python.org/pypi/pywincffi and not move anything within Twisted.

> What would you say the way forward is? Should I submit the patch for review 
> anyway? Is there any other work that needs to be done first that I may 
> contribute to?

Yes, just go ahead and write the patch.

> Thanks in advance for Twisted and for your feedback,

Thanks for using Twisted, thanks doubly for trying to contribute, and very 
sorry for the slow response.

-glyph


___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] upcoming changes to twistedmatrix.com mail infrastructure

2016-03-31 Thread Glyph

> On Mar 16, 2016, at 11:52 AM, Glyph  wrote:
> 
> Over the last few months, twistedmatrix.com 's 
> mailman installation has been used increasingly frequently to execute 
> denial-of-service attacks against people's mailboxes.  This is accomplished 
> by sending huge numbers of subscription requests to our website, which in 
> turn sends huge numbers of confirmation emails to their inbox.  Based on some 
> information that some targeted users have sent me, I now believe that this is 
> to cause those users' mail quotas to be exceeded so that password reset or 
> login notification emails won't reach them.

I've taken the first few steps to migrating us over to Mailgun, but just as a 
minor status update: web-based subscription is now disabled.  If any generous 
souls would like to help out and update whatever wiki pages link to the mailman 
listinfo pages to say 'please send subscription requests to 
twisted-python-owner@ or twisted-web-owner@ instead' that would be great :-).  
Those email addresses (and hopefully all the others, too) will keep working 
post-migration.

-glyph___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python