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

ENH: Support for Python3 #44

Merged
merged 1 commit into from
Apr 25, 2019
Merged

ENH: Support for Python3 #44

merged 1 commit into from
Apr 25, 2019

Conversation

jcfr
Copy link
Collaborator

@jcfr jcfr commented Apr 11, 2019

Updated code is expected to work with both Python2 and Python3

Slicer migration guide describes how to update the code. See https://www.slicer.org/wiki/Documentation/Nightly/Developers/Tutorials/MigrationGuide/SlicerExtension#Slicer_5.0:_Python2_to_Python3

This commit was crafted by:

  • installing future
  Slicer_DIR=/path/to/Slicer-SuperBuild/Slicer-build
  ${Slicer_DIR}/../python-install/bin/PythonSlicer -m pip install
future
  • applying all fixes
  for f in `find ./ -name "*.py"`; do \
    ${Slicer_DIR}/../python-install/bin/PythonSlicer \
      --launch futurize -w $f; \
  done
  • reviewing the changes and updating as needed.

Updated code is expected to work with both Python2 and Python3

This commit was crafted by:

- installing future

  Slicer_DIR=/path/to/Slicer-SuperBuild/Slicer-build
  ${Slicer_DIR}/../python-install/bin/PythonSlicer -m pip install
future

- applying all fixes

  for f in `find ./ -name "*.py"`; do \
    ${Slicer_DIR}/../python-install/bin/PythonSlicer \
      --launch futurize -w $f; \
  done

- reviewing the changes and updating as needed.
@jcfr jcfr merged commit 2039267 into master Apr 25, 2019
@jcfr jcfr deleted the add-python3-support branch April 25, 2019 21:56
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.

1 participant