Updating python modules in edx-platform
As part of the INCR project, some of the libraries within Open edX need to be updated in order to be python 3 compatible. Generally, to upgrade, a base.in file is updated followed by a
make upgrade
command. Below are some quick steps to successfully upgrade the library:
- The
make upgrade
command needs to be run within the application shell of your devstack. For example, when upgrading a LMS module, runmake lms-shell
in your devstack and then runmake upgrade
. - If you run into a "Could not find a version that matches" error during the upgrade, please review this section of OEP-18. The
pipdeptree
module can be used to determine the dependencies for each module. Keep in mind that your newly updated library listed in the INCR ticket may have new dependencies itself.