Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pywin32 for PyPy #842

Closed
ghost opened this issue Mar 25, 2011 · 8 comments
Closed

pywin32 for PyPy #842

ghost opened this issue Mar 25, 2011 · 8 comments

Comments

@ghost
Copy link

ghost commented Mar 25, 2011

I've just managed to make pywin32 compile and work on top of PyPy.
I open this ticket to keep track of the various changes that I made to the pywin32 source code.
I'm currently preparing patches; for the moment, changes are of two kinds:

- In some .cpp files you can find "if PyString_Check(xxx)" without surrounding parentheses. This works on CPython because PyString_Check is actually a macro which adds parentheses to its expression; with PyPy PyString_Check is a function.

- With PyPy it's not allowed to change ob_type after object creation. This is used a lot by all PyIBase subclasses. The solution I found is to pass the TypeObject to the base constructor, and ensure that ob_type is set just before calling _Py_NewReference(). Of course these two lines can be replaced by "PyObject_Init(this, type);"

Reported by: amauryf

Original Ticket: pywin32/feature-requests/83

@ghost
Copy link
Author

ghost commented Mar 26, 2011

Sounds great to me. Use of PyObject_Init sounds good too so long as it also works in earlier Python version (I seem to recall that function was added in later versions).

Original comment by: mhammond

@ghost
Copy link
Author

ghost commented Mar 26, 2011

PyObject_Init is already present in Python2.2

Original comment by: amauryf

@ghost
Copy link
Author

ghost commented Jun 21, 2012

What is the current status of pypy compatibility ?
Is the work done by Amaury on https://bitbucket.org/amauryfa/pywin32-pypy going to be merged back in the pywin32 project ?

Original comment by: thibault-hild

@ghost
Copy link
Author

ghost commented Jul 18, 2012

How can I help get this merged into default pywin32 ?

Original comment by: matti

@ghost
Copy link
Author

ghost commented Jul 18, 2012

I guess you could contact Amaury and see if he needs any help to get patches together for review - from my POV, I'm just waiting for those patches.

Original comment by: mhammond

@ghost
Copy link
Author

ghost commented Sep 14, 2015

Can you please share how to install pywin32 for pypy? Here is the screen shot of error message.
I appreciate your help

Original comment by: mabel111

@ghost
Copy link
Author

ghost commented Sep 14, 2015

Hi,
Sorry I don't have any Windows machine anymore. But from the messages it seems that you did not install the Microsoft Windows SDK.

Original comment by: amauryf

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@Avasam
Copy link
Collaborator

Avasam commented Mar 12, 2024

Duplicated by #1289 (that other issue is more modern with up to date discussion, so may as well close this one)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants