Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
http://luc.lino-framework.org/blog/2017/0309.html
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaffre committed Mar 9, 2017
1 parent 52677a0 commit 2db5224
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
41 changes: 39 additions & 2 deletions docs/dev/install_dev_projects.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
#!/bin/bash
set -e # exit on error

if [ "$1" = "-h" -o "$1" = "--help" ]
then
cat <<USAGE
Usage:
$0 [ <envname> ]
When invoked with an envname, then it creates both that virtualenv and
a directory repositories.
Without an envname it assumes that you want to install Lino into the
current environment and that you are in your existing repositories
directory.
USAGE
exit -1
fi

function prepare_env {
env=$1
if [ -d $env ] ; then
echo Oops, a directory $env exists already.
echo Delete it yourself if you dare!
exit -1
fi
virtualenv $env
. $env/bin/activate
mkdir repositories
cd repositories
}

function install {
nickname=$1
owner=$2
Expand All @@ -14,6 +44,11 @@ function install {
pip install -e $nickname
}


if [[ $1 ]] ; then
prepare_env $1
fi

install cd lsaffre commondata
install be lsaffre commondata-be
install ee lsaffre commondata-ee
Expand All @@ -28,6 +63,8 @@ install voga lino-framework voga
install avanti lino-framework avanti
install book lino-framework book
install ext6 lino-framework extjs6
install patrols lino-framework patrols
install logos lino-framework logos

# the following are not really needed
install patrols lsaffre lino-patrols
install logos lsaffre lino-logos

2 changes: 1 addition & 1 deletion docs/dev/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Packages
- :ref:`avanti`
- :ref:`presto`
- :ref:`extjs6`.
- :ref:`algus`.
- ``algus``



Expand Down
2 changes: 1 addition & 1 deletion lino_book/setup_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
install_requires=[
'lino', 'selenium',
'django-iban', 'metafone', 'channels',
'djangorestframework',
'djangorestframework', 'bleach',
'lino-cosi',
'commondata', 'commondata.ee', 'commondata.be'],
tests_require=['pytest'],
Expand Down

0 comments on commit 2db5224

Please sign in to comment.