Skip to content

Using the new repos

ketch edited this page May 1, 2011 · 17 revisions

Here are some brief instructions for getting started with the new repos. For now this just refers to PyClaw and PetClaw, as well as the 'riemann' repo. Others will be added as they appear.

You will probably want to organize all these packages under one directory; make that and point your CLAW environment variable to it.

Next, clone the repositories

$ cd $CLAW
$ git clone git@github.com:clawpack/pyclaw.git
$ git clone git@github.com:clawpack/petclaw.git
$ git clone git@github.com:clawpack/riemann.git

Now set your environment variables. Here are the C-shell commands:

setenv RIEMANN $CLAW/riemann
setenv PYCLAW $CLAW/pyclaw
setenv PETCLAW $CLAW/petclaw

Set your PYTHONPATH to point to the appropriate directories:

setenv PYTHONPATH "$PYCLAW/src/:$PETCLAW"

For PetClaw, you must also have PETSc and petsc4py installed. Once that is complete, you can try

$ cd $PETCLAW
$ nosetests

to verify your installation.

For PetClaw and PyClaw, we do not develop on the master branch, but on a 'dev' branch. To get this, do the following:

$ cd $PYCLAW
$ git checkout -b dev origin/dev

To push changes you'll generally want to do

$ git push origin dev

Clone this wiki locally