diff --git a/docs/chapters/deploying.rst b/docs/chapters/deploying.rst index f34a8ae6cd..8563cd3915 100644 --- a/docs/chapters/deploying.rst +++ b/docs/chapters/deploying.rst @@ -29,7 +29,7 @@ For another setup that offers more performance and scalability refer to the sudo apt-get install g++ gcc ghostscript gnupg1 graphviz libfuse2 \ libjpeg-dev libmagic1 libpq-dev libpng-dev libreoffice libtiff-dev \ - poppler-utils postgresql python-dev python-virtualenv redis-server \ + poppler-utils postgresql python3-dev python3-virtualenv redis-server \ sane-utils supervisor tesseract-ocr zlib1g-dev -y .. note:: @@ -63,7 +63,7 @@ For another setup that offers more performance and scalability refer to the of the Python packages in the system. :: - sudo virtualenv /opt/mayan-edms + sudo virtualenv /opt/mayan-edms -p /usr/bin/python3 5. Make the mayan user the owner of the installation directory: diff --git a/docs/releases/3.3.rst b/docs/releases/3.3.rst index 37db7da2ef..ed45290273 100644 --- a/docs/releases/3.3.rst +++ b/docs/releases/3.3.rst @@ -130,9 +130,14 @@ Upgrading from a previous version If installed via Python's PIP ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Update the virtualenv to Python 3:: + + sudo -u mayan virtualenv /opt/mayan-edms -p /usr/bin/python3 + Remove deprecated requirements:: - sudo -u mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt -o /tmp/removals.txt && sudo -u mayan /opt/mayan-edms/bin/pip uninstall -y -r /tmp/removals.txt + sudo -u mayan curl https://gitlab.com/mayan-edms/mayan-edms/raw/master/removals.txt -o /tmp/removals.txt \ + && sudo -u mayan /opt/mayan-edms/bin/pip uninstall -y -r /tmp/removals.txt Type in the console:: diff --git a/docs/topics/faq.rst b/docs/topics/faq.rst index a06ed9cda3..0288fa1935 100644 --- a/docs/topics/faq.rst +++ b/docs/topics/faq.rst @@ -207,8 +207,23 @@ apparent reason. Does Mayan EDMS work with Python 3? ----------------------------------- -Yes but it is not production ready yet. Users are encouraged to deploy test -installations of Mayan EDMS on Python 3 and report findings. +Yes, version 3.3 ships with Python 3.7 support. Support for Python 2 will +be removed in version 4.0. + +How to upgrade an existing Python 2 virtualenv +---------------------------------------------- + +Use:: + + virtualenv -p + +If you followed the deployment instructions, the command line would be:: + + virtualenv /opt/mayan-edms -p /usr/bin/python3 + +If using a dedicated user account for Mayan EDMS:: + + sudo -u virtualenv /opt/mayan-edms -p /usr/bin/python3 Static files