Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm answering my own question, the below seems to have worked well enough for me but I think this answer could be improved on by automating all the git cloning and pip installing etc. that I do manually...</p> <p>The trick is to deviate from the ckan source install instructions slightly and <code>git clone</code> ckan into the project dir 'manually', then you need to do an additional <code>python setup.py develop</code> command to install ckan into your virtualenv (the pip install command would have handled this for you):</p> <pre><code>&gt; mkproject ckan </code></pre> <p>This creates a ckan virtualenv at <code>WORKON_HOME/ckan</code> and a ckan project dir at <code>PROJECT_HOME/ckan</code>, activates the virtualenv, and cd's into the project dir. So far the virtualenv and project dir are 'empty', there's no ckan installed anywhere yet. Now clone the ckan git repo:</p> <pre><code>(ckan)~/Projects/ckan&gt; git clone git@github.com:okfn/ckan.git </code></pre> <p>This will clone the git repo to <code>~/Projects/ckan/ckan</code>. At this point ckan commands still won't work, you've cloned the git repo but you still haven't installed ckan into your virtualenv:</p> <pre><code>(ckan)~/Projects/ckan&gt; cd ckan (ckan)~/Projects/ckan/ckan&gt; python setup.py develop </code></pre> <p>ckan commands <em>still</em> won't work until you also install ckan's dependencies into your virtualenv:</p> <pre><code>(ckan)~/Projects/ckan/ckan&gt; pip install --ignore-installed -r requires/lucid_missing.txt -r requires/lucid_conflict.txt -r requires/lucid_present.txt (ckan)~/Projects/ckan/ckan&gt; pip install webob==1.0.8 </code></pre> <p>Now, finally you can run ckan commands:</p> <pre><code>(ckan)~/Projects/ckan/ckan&gt; paster make-config ckan development.ini (edit development.ini as necessary) (ckan)~/Projects/ckan/ckan&gt; paster serve development.ini Starting server in PID 17356. serving on 0.0.0.0:5000 view at http://127.0.0.1:5000 </code></pre> <p>From now on, each time you want to start developing on ckan you can just run <code>workon ckan</code> to activate your ckan virtualenv and cd to your ckan project dir, then hack away.</p> <p>If you also want to hack on a CKAN extension such as ckanext-harvest, you can install that git repo into your ckan project dir alongside the ckan git repo:</p> <pre><code>(ckan)~/Projects/ckan&gt; git clone git@github.com:okfn/ckanext-harvest.git (ckan)~/Projects/ckan&gt; cd ckanext-harvest (ckan)~/Projects/ckan/ckanext-harvest&gt; python setup.py develop </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload