Skip to content

Instantly share code, notes, and snippets.

@t-book
Last active May 9, 2020 14:19
Show Gist options
  • Save t-book/e05e2b3905356e9a51fe7d6fa187ad4d to your computer and use it in GitHub Desktop.
Save t-book/e05e2b3905356e9a51fe7d6fa187ad4d to your computer and use it in GitHub Desktop.
# Install geonode OSX 10.14.1
mkdir -p ~/pyenv
virtualenv ~/pyenv/geonode
source ~/pyenv/geonode/bin/activate
git clone https://github.com/GeoNode/geonode
cd geonode
pip install GDAL==2.3.2 lxml==4.2.5 paver celery==4.1.0
pip install -e .
brew install node
npm install -g bower
npm install -g grunt-cli
### edit file
vim ~/pyenv/geonode/lib/python2.7/site-packages/django/contrib/gis/geos/libgeos.py
# at line 131 replace
version_regex = re.compile(
r'^(?P<version>(?P<major>\d+)\.(?P<minor>\d+)\.(?P<subminor>\d+))'
r'((rc(?P<release_candidate>\d+))|dev)?-CAPI-(?P<capi_version>\d+\.\d+\.\d+)( r\d+)?$'
)
# with
version_regex = re.compile(r'^(?P<version>(?P<major>\d+)\.(?P<minor>\d+)\.(?P<subminor>\d+))((rc(?P<release_candidate>\d+))|dev)?-CAPI-(?P<capi_version>\d+\.\d+\.\d+).*$')
paver setup
paver sync
paver start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment