Changes between Version 8 and Version 9 of Python3Support
- Timestamp:
- 09/03/18 06:43:43 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Python3Support
v8 v9 638 638 cmp 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. 639 639 640 == How to test 641 We can create isolated environment with Python 3 for example using virtualenv: 642 {{{ 643 pip install virtualenv 644 # create environment 645 virtualenv -p python3 grasspy3 646 # activate it 647 source grasspy3/bin/activate 648 # install python packages GRASS needs 649 pip install wxpython 650 pip install numpy 651 # test GRASS and then deactivate the environment 652 deactivate 653 }}} 640 654 == References 641 655 http://sebastianraschka.com/Articles/2014_python_2_3_key_diff.html\\