Skip to content

Commit 5c3c6e1

Browse files
author
Pierre GIRAUD
committedJul 29, 2015
Use pip to install project
1 parent 5b8c510 commit 5c3c6e1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed
 

‎.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ before_install:
1515
install:
1616
- virtualenv env
1717
- source env/bin/activate
18-
- python setup.py develop
18+
- pip install --upgrade pip
19+
- pip install -r requirements.txt
1920
- createuser www-data --no-superuser --no-createdb --no-createrole -U postgres
2021
- createdb -O www-data osmtm -U postgres
2122
- psql -d osmtm -c "CREATE EXTENSION postgis;" -U postgres

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To create a virtual Python environment:
2727
cd osm-tasking-manager2
2828
sudo easy_install virtualenv
2929
virtualenv --no-site-packages env
30-
./env/bin/python setup.py develop
30+
./env/bin/pip install -r requirements.txt
3131

3232
*Tip: if you encounter problems installing `psycopg2` especially on Mac, it is recommended to follow advice proposed [here](http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa).*
3333

@@ -127,7 +127,7 @@ To run the tests, use the following command:
127127

128128
1. pull latest updates from the repository: `git pull origin`
129129
1. update the submodules: `git submodule update`
130-
1. update/install python modules: `./env/bin/python setup.py develop`
130+
1. update/install python modules: `./env/bin/pip install -r requirements.txt`
131131
1. create database dump: `pg_dump -Fc -f osmtm2_latest.dmp database_name`
132132
1. run database migrations: `alembic upgrade head`
133133
1. compile messages: `./env/bin/python setup.py compile_catalog`

‎requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-e .

0 commit comments

Comments
 (0)
Please sign in to comment.