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

Drop python2 support #214

Merged
merged 4 commits into from
Mar 13, 2019
Merged

Drop python2 support #214

merged 4 commits into from
Mar 13, 2019

Conversation

aronsky
Copy link
Contributor

@aronsky aronsky commented Mar 13, 2019

As per #206, remove Python 2 support.

Note: I haven't completely tested the win32 compilation on Wine. I updated the download to use the latest Python 3 available as an MSI package (since later Python 3 versions fail to install successfully under Wine), but make fails due to other errors that I didn't feel like diving into. If anyone knows how the build of the w32 Python bindings works and can test its functionality, that'll be great.

@XVilka
Copy link
Contributor

XVilka commented Mar 13, 2019

I also think we should drop everything that older 3.6: https://repology.org/project/python3/versions

@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we use /usr/bin/env python3 for now? Just in case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will fix.

python3.6
python35
python3.5
python34
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop old 3.x versions maybe?

mp.py Outdated
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/bin/env python
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python3 here too

`#!/usr/bin/env python` for now, to make sure Python 3
is used.
@aronsky
Copy link
Contributor Author

aronsky commented Mar 13, 2019

I also think we should drop everything that older 3.6: https://repology.org/project/python3/versions

I'm all for newer versions, but dropping older versions of Python 3 seems unnecessary - the only difference is the call to Py_Finalize (which is void before 3.6), that's easy to maintain... And if the wine build works, it's a lot easier to build with Python 3.4 (which can be installed under wine without problems), than newer versions (which aren't distributed in MSI packaging, and their installation fails).

were differentiated between 2 and 3
@aronsky
Copy link
Contributor Author

aronsky commented Mar 13, 2019

The latest commit now builds lang_python.{so|dylib}, instead of lang_python3.{so|dylib}.

I guess that once this gets merged, we should also update the r2pm repo to include just lang_python, instead of lang_python2 and lang_python3.

However, this switch will require a manual update from an older version of lang_python3 to the new lang_python. Is that OK?

@XVilka
Copy link
Contributor

XVilka commented Mar 13, 2019

Yes, I think that's OK. Thank you!

@XVilka
Copy link
Contributor

XVilka commented Mar 13, 2019

Merging this to let people test and catch bug early.

@XVilka XVilka merged commit cd68694 into radareorg:master Mar 13, 2019
@aronsky aronsky deleted the drop-python2-support branch March 13, 2019 15:30
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