emc 项目三期 开发环境

emc 项目三期 开发环境

emc 项目三期 开发环境

  1. 系统 
    1. Win10+  
    2. WSL2  Ubuntu 18.04
    3. 参考文档:Installing Plone on a Windows 10 Linux Subsystem for Development — Plone Documentation v5.2
  2. 操作系统预先安装库
    1. plone通常要求的库Plone Installation Requirements — Plone Documentation v5.2
      1. Plone要求:
        sudo apt-get install python3-dev python3-setuptools build-essential libssl-dev libxml2-dev \
        libxslt1-dev libbz2-dev libjpeg62-dev zlib1g-dev libreadline-dev wv poppler-utils libssl-dev \
        libffi-dev python-matplotlib python-gtk2 fonts-wqy-microhei fonts-wqy-zenhei  \
        p7zip python-docutils libncurses5-dev libncursesw5-dev
      2. pillow 要求:
        sudo apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
        libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
        libharfbuzz-dev libfribidi-dev libxcb1-dev
    2. 三方插件要求的库
      1. 如果用oracle,参考:http://www.315ok.org/blogfolder/ubuntu-anzhuang-cx_oracle/@@base_view
      2. 如果用MySQL:
        1. 命令行:sudo apt-get install default-libmysqlclient-dev 
        2. 参考:
          1. https://pypi.org/project/mysqlclient/
          2. https://mysqlclient.readthedocs.io/
  3. 安装pyenv,参考:Plone开发环境下管理多个python版本的解决方案:pyenv — Plone中文资料 (315ok.org)
  4.  开发工具和插件配置
    1. vscode
    2. 插件:remote-WSL,Pylance,Python,Easy less
    3. 安装 plonecli 参考:https://pypi.org/project/plonecli/
  5. python 版本
    1. python 3.7.9
  6. Plone版本
    1. Plone 5.2.7
  7. 项目git 地址
    1. buildout开发配置git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/buildout.git
    2. emc.behaviors: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/emc.behaviors.git
    3. emc.reports: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/emc.reports.git
    4. emc.db: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/emc.db.git
    5. collective.gtags: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/adam139/collective.gtags.git  
    6. sqlalchemy.dbapi: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/adam139/sqlalchemy.dbapi.git 
    7. emc.setup: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/emc.setup.git
    8. emc.skin: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/emc.skin.git
    9. emc.contents: git@codeup.aliyun.com:5f422575df9df74e36afe7e6/emc/emc.contents.git
设置