简体   繁体   English

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

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

I'm trying to add "ckanext-wet-boew" ckanext to my ckan 2.2. 我正在尝试将“ ckanext-wet-boew” ckanext添加到我的ckan 2.2中。

These are the steps I followed: 这些是我遵循的步骤:

1.- Download the zip file from: https://github.com/open-data/ckanext-wet-boew 1.-从以下位置下载zip文件: https : //github.com/open-data/ckanext-wet-boew
2.- Extract to a folder. 2.-解压缩到一个文件夹。
3.- Create a folder in /usr/lib/ckan/default/src called: ckanext-wet_boew 3.-在/ usr / lib / ckan / default / src中创建一个名为ckanext-wet_boew的文件夹
4.- Copy the content from the subfolder ckanext-wet-boew-master\\ckanext-wet-boew-master to ckanext-wet_boew 4.-将内容从子文件夹ckanext-wet-boew-master \\ ckanext-wet-boew-master复制到ckanext-wet_boew
5.- As it say in readme.st I add wet-boew-dist-3.1.7 and I download jqueymobile1.3.2 to folder 5.-正如在readme.st中所说的,我添加wet-boew-dist-3.1.7,然后将jqueymobile1.3.2下载到文件夹
6.- Now as it says in: http://docs.ckan.org/en/1117-start-new-test-suite/writing-extensions.html 6.-现在,其内容如下: http : //docs.ckan.org/en/1117-start-new-test-suite/writing-extensions.html

there is a note: "To instead install a python package by copying all of the files to the site-packages directory run python setup.py install" 有一条注释:“要改为通过将所有文件复制到site-packages目录来安装python软件包,请运行python setup.py install”
With this steps it should be possible to use this plugin adding in production.ini ckan.plugins = ... wet_theme 通过此步骤,应该可以使用此插件添加到production.ini ckan.plugins = ... wet_theme

As it fail I have done python setup.py develop 由于失败,我完成了python setup.py开发

but no way. 但是没办法

Any idea??? 任何想法???

Thanks 谢谢

When installed, and after unzipping the wet-boew dist zip file, your file directory should look something like this: 安装后,解压缩湿文件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/

If the files aren't in this structure, the extension will not work. 如果文件不在此结构中,则扩展名将不起作用。

After running "python setup.py develop" on the setup.py in the root folder, the package should be available for use. 在根文件夹中的setup.py上运行“ python setup.py development”之后,该软件包应该可以使用了。

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

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