<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2015-07-07 19:20 GMT+02:00 Matti Picus <span dir="ltr"><<a href="mailto:matti.picus@gmail.com" target="_blank">matti.picus@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
    
  
  <div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
    This is all documented in our FAQ
<a href="http://pypy.readthedocs.org/en/latest/faq.html#do-cpython-extension-modules-work-with-pypy" target="_blank">http://pypy.readthedocs.org/en/latest/faq.html#do-cpython-extension-modules-work-with-pypy</a><br>
    <br>
    Some modules, like wxPython, that use the python c API or ctypes
    will either not work with PyPy or will be much slower than cPython.
    We highly recommend cffi as an alternative foreign function
    interface, since it is nicer than ctypes and is fast on PyPy, but it
    may be a while until module authors see the light of the one true
    way.<br></div></blockquote><div><br></div><div>Old versions of wxPython ("classic") used SWIG to wrap the C++ libraries, and could be compiled with PyPy. It worked, but it was a long time ago, was the result was quite slow...</div><div><a href="http://morepypy.blogspot.fr/2010/05/running-wxpython-on-top-of-pypy.html">http://morepypy.blogspot.fr/2010/05/running-wxpython-on-top-of-pypy.html</a> (unfortunately the screenshots are lost)<br></div><div><br></div><div>Newer versions of wxPython ("Phoenix") use SIP to wrap the C++ libraries, and there is no way it can be supported directly by PyPy (SIP uses metaclasses with custom tp_alloc slots to subclass int... I tried).</div><div><br></div><div>There was an attempt to port have SIP file generate a cffi interface, it did not go to completion but looks very promising.</div><div>There is a nice story here: <a href="http://waedt.blogspot.fr/">http://waedt.blogspot.fr/</a></div><div>It seems that all basic infrastructure are there, but many widgets extend SIP wrappers and use the C API: they need to be rewritten in a cffi-friendly fashion.</div><div><br></div><div>Good luck with wxPython.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="direction:ltr" bgcolor="#FFFFFF" text="#000000">
    <br>
    The wiki page <a href="https://bitbucket.org/pypy/compatibility/wiki/Home" target="_blank">https://bitbucket.org/pypy/compatibility/wiki/Home</a> may
    have some hints about module compatibility, note that your mileage
    may vary and updates are welcome.<br>
    <br>
    Also, you should be using visual studio 2008 (for both PyPy 2.6.0
    and cPython 2.7), using this link should get you started <br>
    <a href="https://www.microsoft.com/en-us/download/details.aspx?id=44266" target="_blank">https://www.microsoft.com/en-us/download/details.aspx?id=44266</a><span class=""><font color="#888888"><br>
    Matti</font></span><div><div class="h5"><br>
    <br>
    <br>
    <div>On 05/07/15 07:44, germano carella
      wrote:<br>
    </div>
    <blockquote type="cite">Hi,
      <br>
      I downloaded pypy 2.6.0 and I ran pypy -m ensurepip. All worked
      correctly.
      <br>
      Now, in some cases, when i do pip install somepackage, it say
      could not find any download that satisfy requirements.
      <br>
      This even if packages apear in pip search command.
      <br>
      I tried wxPython, but i'm unable to install it...
      <br>
      In other cases, pip says that windows ssdk is not found. But I
      have visual studio 2013 installed and windows sdk is on my pc.
      <br>
      There are variables Can I set?
      <br>
      Thanks!
      <br>
      _______________________________________________
      <br>
      pypy-dev mailing list
      <br>
      <a href="mailto:pypy-dev@python.org" target="_blank">pypy-dev@python.org</a>
      <br>
      <a href="https://mail.python.org/mailman/listinfo/pypy-dev" target="_blank">https://mail.python.org/mailman/listinfo/pypy-dev</a>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
pypy-dev mailing list<br>
<a href="mailto:pypy-dev@python.org">pypy-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pypy-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/pypy-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Amaury Forgeot d'Arc</div>
</div></div>