Remove virtualenv references from READMEs #60
This commit is contained in:
parent
0acae8240f
commit
75531b671e
@ -9,11 +9,10 @@ CartoDB Spatial Analysis extension for PostgreSQL.
|
|||||||
* - *src/pg* contains the PostgreSQL extension source code
|
* - *src/pg* contains the PostgreSQL extension source code
|
||||||
* - *src/py* Python module source code
|
* - *src/py* Python module source code
|
||||||
* *release* reseleased versions
|
* *release* reseleased versions
|
||||||
* *env* base directory for Python virtual environments
|
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* pip, virtualenv, PostgreSQL
|
* pip, PostgreSQL
|
||||||
* python-scipy system package (see [src/py/README.md](https://github.com/CartoDB/crankshaft/blob/master/src/py/README.md))
|
* python-scipy system package (see [src/py/README.md](https://github.com/CartoDB/crankshaft/blob/master/src/py/README.md))
|
||||||
|
|
||||||
# Working Process -- Quickstart Guide
|
# Working Process -- Quickstart Guide
|
||||||
|
@ -10,7 +10,6 @@ nosetests test/
|
|||||||
|
|
||||||
## Notes about Python dependencies
|
## Notes about Python dependencies
|
||||||
* This extension is targeted at production databases. Therefore certain restrictions must be assumed about the production environment vs other experimental environments.
|
* This extension is targeted at production databases. Therefore certain restrictions must be assumed about the production environment vs other experimental environments.
|
||||||
* We're using `pip` and `virtualenv` to generate a suitable isolated environment for python code that has all the dependencies
|
|
||||||
* Every dependency should be:
|
* Every dependency should be:
|
||||||
- Added to the `setup.py` file
|
- Added to the `setup.py` file
|
||||||
- Installed through it
|
- Installed through it
|
||||||
@ -30,21 +29,7 @@ PySAL 1.10 or later, so we'll stick to 1.9.1.
|
|||||||
apt-get install -y python-scipy
|
apt-get install -y python-scipy
|
||||||
```
|
```
|
||||||
|
|
||||||
We'll use virtual environments to install our packages,
|
#### Test the libraries
|
||||||
but configued to use also system modules so that the
|
|
||||||
mentioned scipy and numpy are used.
|
|
||||||
|
|
||||||
# Create a virtual environment for python
|
|
||||||
$ virtualenv --system-site-packages dev
|
|
||||||
|
|
||||||
# Activate the virtualenv
|
|
||||||
$ source dev/bin/activate
|
|
||||||
|
|
||||||
# Install all the requirements
|
|
||||||
# expect this to take a while, as it will trigger a few compilations
|
|
||||||
(dev) $ pip install -I ./crankshaft
|
|
||||||
|
|
||||||
#### Test the libraries with that virtual env
|
|
||||||
|
|
||||||
##### Test numpy library dependency:
|
##### Test numpy library dependency:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user