如何安装ckanextwetboew作为ckan扩展?

2024-10-01 09:15:37 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将“ckanext wet boew”ckanext添加到我的ckane2.2中。

以下是我遵循的步骤:

1.-从以下位置下载压缩文件: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.-就像上面说的自述文件.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设置.py安装“
通过这些步骤,应该可以使用这个插件添加到production.inickan插件= ... wet_主题

我已经失败了 pythonsetup.py开发

但不可能。

你知道吗???

谢谢


Tags: pyhttpsgithubmaster文件夹com插件data
1条回答
网友
1楼 · 发布于 2024-10-01 09:15:37

安装后,解压缩湿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/

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

在运行“python”之后设置.py在设置.py在根文件夹中,包应该可以使用。在

相关问题 更多 >