[openbiblio-dev] [SPAM] Re: Exposing as RDF...

Peter Murray-Rust pm286 at cam.ac.uk
Tue Jun 29 09:22:25 UTC 2010


Thanks,
I'm busy for 3 hours but will try it after lunch. It's sufficiently
complicated that I will try to keep notes for Windows.

P.


On Tue, Jun 29, 2010 at 10:12 AM, Graham Higgins <gjh at bel-epa.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Peter,
>
> On 29 Jun 2010, at 08:37, Peter Murray-Rust wrote:
>
> It doesn't quite follow the documented, but I scribbled down this record of
> my replication. It's from an OS X machine and not a Windows machine, so it
> won't match your experience, sorry. It creates a virtualenv sandbox, does
> all the imports, creates the app, runs the app, exits and cleans up after
> itself, leaving almost no trace.
>
> I found that I needed to have an explicit -r in:
>
> pip install -E pyenv-openbiblio -r openbiblio/pip-requirements.txt
>
> and I wasn't able to install the checked-out openbiblio with a
>
>
> paster make-config openbiblio development.ini
>
> instead, I moved it into pyenv-openbiblio and installed it from there with
> a "python setup.py develop" and I also had to hand-create the
> pyenv-openbiblio/openbiblio/data folder.
>
> Scribbled notes...
>
> #!/bin/sh
> $ cd /tmp
> $ hg clone https://knowledgeforge.net/pdw/openbiblio > clone.log
> $ patch -p 1 < /tmp/pipreq.diff
> $ pip install -E pyenv-openbiblio -r openbiblio/pip-requirements.txt >
> install.log
> $ mv openbiblio pyenv-openbiblio/  # move openbiblio into pyenv-openbiblio
> $ cd /tmp/pyenv-openbiblio # relocate to the virtualenv base
> $ patch -p 1 < /tmp/rdfns.diff
> $ source bin/activate # activate the virtual environment
> (pyenv-openbiblio)$ cd openbiblio # relocate to the application directory
> (pyenv-openbiblio)$ python setup.py develop > install.log # install
> openbiblio
> (pyenv-openbiblio)$ paster make-config openbiblio development.ini # create
> app config file
> (pyenv-openbiblio)$ mkdir /tmp/pyenv-openbiblio/openbiblio/data
> (pyenv-openbiblio)$ paster setup-app development.ini # initialises the
> handlers
> (pyenv-openbiblio)$ paster serve development.ini # serve the app using a
> Python web server
> ^C
> (pyenv-openbiblio)$ deactivate
> $ cd ..
> $ rm -rf pyenv-openbiblio clone.log
>
>
> - --
>
> Cheers,
>
> Graham
>
> http://www.linkedin.com/in/ghiggins
>
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAkwpuPEACgkQOsmLt1NhivwRzgCdEzUvDeozp2tUqpIrfNwywjf1
> j/QAn00RN8CgqyxNTl7xGO6Yrz0yFcEZiQCVAgUBTCm48VnrWVZ7aXD1AQIa0wP+
> Ond1deUXlwo7VkAWDZJfeObbGlA7INFUgAG1JIMrtnhAKlQywOZpJSagWJrQ9g8k
> yI3U72oX2eHQfl1F/ZibifZxgIyhTSY/W6z09WmA7kwgGlTqe0cFB2MboQK/kjmR
> sMFyV8R0kfXwyyG7kn2Ss9Wox5vYgZ5friJ6PAiM/Bo=
> =uVRL
> -----END PGP SIGNATURE-----
>
>


-- 
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openbiblio-dev/attachments/20100629/a0971eb4/attachment.html>


More information about the openbiblio-dev mailing list