Skip to content

Commit

Permalink
Don't use "setup.py develop" anymore, this is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Jan 20, 2022
1 parent 1a2df0e commit 2ef7149
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Install Requirements
Install python requirements::

$ pip install -r requirements_dev.txt
$ python setup.py develop
$ pip install -e .

Install application
~~~~~~~~~~~~~~~~~~~
Expand Down
9 changes: 4 additions & 5 deletions docs/production.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ Database
PostgreSQL
~~~~~~~~~~

Install the Postgres server and create a database and a user::
Install the Postgres server (choose the appropriate and currently supported version
for your distro) and create a database and a user::

sudo apt-get install postgresql postgresql-server-dev-12 # or appropriate version
sudo apt-get install postgresql postgresql-server-dev-12 python3-psycopg2
sudo su - postgres
createdb wger
psql wger -c "CREATE USER wger WITH PASSWORD 'wger'";
Expand Down Expand Up @@ -115,9 +116,7 @@ Get the application::
git clone https://github.com/wger-project/wger.git /home/wger/src
cd /home/wger/src
pip install -r requirements.txt
python setup.py develop
# Only if using postgres
pip install psycopg2
pip install -e .

# If using sqlite without the --database-path
wger create-settings --database-path /home/wger/db/database.sqlite
Expand Down

0 comments on commit 2ef7149

Please sign in to comment.