Changes between Version 8 and Version 9 of Python3Support


Ignore:
Timestamp:
09/03/18 06:43:43 (6 years ago)
Author:
annakrat
Comment:

how to test python3

Legend:

Unmodified
Added
Removed
Modified
  • Python3Support

    v8 v9  
    638638cmp function is not available in Python3, it has been custom created and included in gui/wxpython/core/utils.py file. Be sure to include it where cmp() is used.
    639639
     640== How to test
     641We can create isolated environment with Python 3 for example using virtualenv:
     642{{{
     643pip install virtualenv
     644# create environment
     645virtualenv -p python3 grasspy3
     646# activate it
     647source grasspy3/bin/activate
     648# install python packages GRASS needs
     649pip install wxpython
     650pip install numpy
     651# test GRASS and then deactivate the environment
     652deactivate
     653}}}
    640654== References
    641655http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html\\