Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8090473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:44:06+00:00 2026-06-05T19:44:06+00:00

Using virtualenvwrapper to develop on the CKAN project is a bit more complex than

  • 0

Using virtualenvwrapper to develop on the CKAN project is a bit more complex than the simple workflow that you would get from the virtualenvwrapper introduction, i.e. just doing mkvirtualenv ckan, following the CKAN source install instructions to install CKAN into your virtualenv, and then hacking away on CKAN.

If I understand the virtualenvwrapper docs correctly, it’s better to use the mkproject ckan command so that you have a virtualenv called ckan hidden away in your WORKON_HOME (~/.virtualenvs by default) and a nice, tidy project dir called ckan in your PROJECT_HOME (~/Projects on my machine) that contains only the source code repos that you’re actually working on, and isn’t cluttered with all the other files that go into the virtualenv. But the project management docs for virtualenvwrapper aren’t very detailed..

If I do mkproject ckan and then proceed to follow the ckan source install instructions, the pip install --ignore-installed -e git+https://github.com/okfn/ckan.git#egg=ckan command installs the ckan git repo at ~/.virtualenvs/ckan/src/ckan rather than in my ~/Projects/ckan dir where I want it. How to get the ckan git repo to be in my project dir?

I’m also going to want to hack on different CKAN extensions (some of which come in their own separate git repos) as part of the same virtualenvwrapper project, so I want virtualenvwrapper to install those in ~/Projects/ckan as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:44:07+00:00Added an answer on June 5, 2026 at 7:44 pm

    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…

    The trick is to deviate from the ckan source install instructions slightly and git clone ckan into the project dir ‘manually’, then you need to do an additional python setup.py develop command to install ckan into your virtualenv (the pip install command would have handled this for you):

    > mkproject ckan
    

    This creates a ckan virtualenv at WORKON_HOME/ckan and a ckan project dir at PROJECT_HOME/ckan, 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:

    (ckan)~/Projects/ckan> git clone git@github.com:okfn/ckan.git
    

    This will clone the git repo to ~/Projects/ckan/ckan. 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:

    (ckan)~/Projects/ckan> cd ckan
    (ckan)~/Projects/ckan/ckan> python setup.py develop
    

    ckan commands still won’t work until you also install ckan’s dependencies into your virtualenv:

    (ckan)~/Projects/ckan/ckan> pip install --ignore-installed -r requires/lucid_missing.txt -r requires/lucid_conflict.txt -r requires/lucid_present.txt
    (ckan)~/Projects/ckan/ckan> pip install webob==1.0.8
    

    Now, finally you can run ckan commands:

    (ckan)~/Projects/ckan/ckan> paster make-config ckan development.ini
        (edit development.ini as necessary)
    (ckan)~/Projects/ckan/ckan> paster serve development.ini
    Starting server in PID 17356.
    serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
    

    From now on, each time you want to start developing on ckan you can just run workon ckan to activate your ckan virtualenv and cd to your ckan project dir, then hack away.

    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:

    (ckan)~/Projects/ckan> git clone git@github.com:okfn/ckanext-harvest.git
    (ckan)~/Projects/ckan> cd ckanext-harvest
    (ckan)~/Projects/ckan/ckanext-harvest> python setup.py develop
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As a developer that has worked on more than one python project at once,
Using Android 2.1+. I have a service that gets killed from time to time
Using MSSQL 2008. I looked around a bit online for a table that maps
I've installed virtualenv and virtualenvwrapper on Windows using easy_install. But mkvirtualenv is missing. I
Using Nunit, I want to be able to write a test fixture that will
Using a restful resource in Rails, I would like to be able to insert
Using Flex 3, I would like to take an image snapshot such as this:
Using top it's easy to identify processes that are hogging memory and cpu, but
Using Rails 3.2.0 with haml and sass: I Would like to link an external
Disclaimer: I'm working in a project where exist an huge webapp that have an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.