XBlock list
Installing a new XBlock
# Move to the folder where you want to download the XBlock
cd /edx/app/edxapp
# Download the XBlock
sudo -u edxapp git clone https://github.com/xxx/yourXBlock.git
# If not installed: Install the XBlock
sudo -u edxapp /edx/bin/pip.edxapp install yourXBlock/
# Remove the installation files
sudo rm -r yourXBlock
Xblock安装目录
/edx/app/edxapp/venvs/edxapp/lib/python2.7/site-packages/
Don’t Use --upgrade to Update Your XBlock, Ever
http://blogs.infinitesquares.net/dont-ever-use-upgrade/
That’s what I tried, but then I found that --upgrade will messed up your Open edX python dependencies. Why? because it will also upgrade others modules
The main takeaway is that don’t use --upgrade, ever because Open edX might be depend on older versions of modules.
So, how to update your XBlock package? Easy, just update your XBlock version in setup.py
…
setup(
name=‘great-xblock’,
version=‘0.2’, # Update module version here
…
)
Then install
sudo -u edxapp /edx/bin/pip.edxapp install yourXBlock/