繁体   English   中英

如何安装ckanext-wet-boew作为ckan扩展名?

[英]How to install ckanext-wet-boew as ckan extension?

我正在尝试将“ ckanext-wet-boew” ckanext添加到我的ckan 2.2中。

这些是我遵循的步骤:

1.-从以下位置下载zip文件: https : //github.com/open-data/ckanext-wet-boew
2.-解压缩到一个文件夹。
3.-在/ usr / lib / ckan / default / src中创建一个名为ckanext-wet_boew的文件夹
4.-将内容从子文件夹ckanext-wet-boew-master \\ ckanext-wet-boew-master复制到ckanext-wet_boew
5.-正如在readme.st中所说的,我添加wet-boew-dist-3.1.7,然后将jqueymobile1.3.2下载到文件夹
6.-现在,其内容如下: http : //docs.ckan.org/en/1117-start-new-test-suite/writing-extensions.html

有一条注释:“要改为通过将所有文件复制到site-packages目录来安装python软件包,请运行python setup.py install”
通过此步骤,应该可以使用此插件添加到production.ini ckan.plugins = ... wet_theme

由于失败,我完成了python setup.py开发

但是没办法

任何想法???

谢谢

安装后,解压缩湿文件dist zip文件后,您的文件目录应如下所示:

ckanext-wet_boew/
  README.rst
  setup.py
  ckanext/
    wet_boew/
      plugins.py
      templates/
      theme/
      public/
        en/
        fr/
        images
        readme.rst
        dist/
          ckan/
          grids/
          js/
          resource.config
          theme-base/
          theme-clf2-nsi2/
          theme-gcwu-fegc/
          theme-gcwu-intranet/
          theme-ogpl/
          theme-wet-boew/

如果文件不在此结构中,则扩展名将不起作用。

在根文件夹中的setup.py上运行“ python setup.py development”之后,该软件包应该可以使用了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM