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

Fix building against python-3.10 #275

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

bjornfor
Copy link

@bjornfor bjornfor commented Jul 3, 2022

Specifically this build error:

  In file included from src/pyuv.c:8:
  src/handle.c: In function ‘resurrect_object’:
  src/handle.c:17:21: error: lvalue required as left operand of assignment
     17 |     Py_REFCNT(self) = refcnt;
        |                     ^

Fixes #271.

Co-authored-by: @polkovnikov

@bjornfor
Copy link
Author

bjornfor commented Jul 3, 2022

@polkovnikov: I found your email on your github page just now, should I use that instead (in the commit message)?

Specifically this build error:

  In file included from src/pyuv.c:8:
  src/handle.c: In function ‘resurrect_object’:
  src/handle.c:17:21: error: lvalue required as left operand of assignment
     17 |     Py_REFCNT(self) = refcnt;
        |                     ^

Fixes saghul#271.

Co-authored-by: @polkovnikov
@bjornfor bjornfor force-pushed the fix-building-against-python310 branch from 12b7842 to e889874 Compare July 3, 2022 16:59
@bjornfor bjornfor changed the title Fix building against python>=3.10 Fix building against python-3.10 Jul 3, 2022
@bjornfor
Copy link
Author

bjornfor commented Jul 3, 2022

python-3.11 has removed/changed more stuff, so I updated the commit message to be correct: this only fixes python-3.10 :-)

@bjornfor
Copy link
Author

bjornfor commented Jul 3, 2022

It seems CI failures ("AppVeyor build failed") are unrelated -- it aborts due to pip/python being too old or something. I tested this patch in nixpkgs master with python3.7/3.8/3.9/3.10.

@saghul saghul merged commit 8bddcc2 into saghul:master Jul 4, 2022
@saghul
Copy link
Owner

saghul commented Jul 4, 2022

Thanks! I'm going to try and resurrect the build system in the upcoming weeks.

@bjornfor bjornfor deleted the fix-building-against-python310 branch July 4, 2022 08:00
@bjornfor
Copy link
Author

bjornfor commented Jul 4, 2022

@saghul: Thanks!

@bjornfor
Copy link
Author

bjornfor commented Jul 4, 2022

This can be closed now. (I thought my "Fixes ..." comment in the commit message would auto-close, but it didn't.)

@bjornfor
Copy link
Author

bjornfor commented Jul 4, 2022

Ugh, wrong place! Sorry.

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

Successfully merging this pull request may close these issues.

2 participants