-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add Python3 support #84
base: master
Are you sure you want to change the base?
Conversation
This code was originally integrated in 5b9fc95 (Initial commit of Slicer4 module code)
This commit was crafted following these steps: 1. create and activate virtual environment 2. install the "future" package pip install future 3. apply the "libfuturize.fixes.fix_absolute_import" fix for f in `find ./ -name "*.py"`; do \ futurize -f libfuturize.fixes.fix_print_with_import --nobackups --write $f; \ done
This commit was crafted following these steps: 1. create and activate virtual environment 2. install the "future" package pip install future 3. apply the "libpasteurize.fixes.fix_newstyle" fix for f in `find ./ -name "*.py"`; do \ futurize -f libpasteurize.fixes.fix_newstyle --nobackups --write $f; \ done 4. revert addition of "from builtins import object" for f in `find ./ -name "*.py"`; do \ sed -i '/from builtins import object/ d' $f; \ done
This commit was crafted following these steps: 1. create and activate virtual environment 2. install the "future" package pip install future 3. apply the "libfuturize.fixes.fix_raise" and "lib2to3.fixes.fix_except" fixes for f in `find ./ -name "*.py"`; do \ futurize -f libfuturize.fixes.fix_raise -f lib2to3.fixes.fix_except --nobackups --write $f; \ done
This commit was crafted following these steps: 1. create and activate virtual environment 2. install the "future" package pip install future 3. apply the "libfuturize.fixes.fix_absolute_import" fix for f in `find ./ -name "*.py"`; do \ futurize -f libfuturize.fixes.fix_absolute_import --nobackups --write $f; \ done
Thank you JC this is amazing. |
@jcfr thanks for doing this. Looks like many of the changes in ee7abcb and the change in e3238a9 have been merged through other PRs, e.g. #118. A few notes:
Do you want to rebase this on |
Notes after investigating further the changes:
|
Thanks for working on integrating. |
Do not hesitate to rebase the pull-request, I will not have to bandwidth to work on this. |
Thanks @jcfr. Will work on this as time permits (long-term effort). Thanks for your past contributions to the tool. |
These changes are expected to be compatible with Python 2 and can be integrated.
Note that more work is required to fully support Python 3