0

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

这些是我遵循的步骤:

1.- 从https://github.com/open-data/ckanext-wet-boew下载 zip 文件
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

有一个注释:“要通过将所有文件复制到站点包目录运行 python setup.py install 来安装 python 包”
通过此步骤它应该可以使用这个插件添加production.inickan.plugins = ...湿主题

由于它失败了,我已经完成了 pythonsetup.py开发

但没办法。

任何想法???

谢谢

4

1 回答 1

1

安装后,解压 wet-boew 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 develop”后,该包应该可以使用了。

于 2014-04-23T13:05:21.857 回答