Skip to content

Commit

Permalink
Use psycopg2-binary rather than psycopg2
Browse files Browse the repository at this point in the history
In addition, elimanate unnecessary dependency (development package for
PostgreSQL).

This helps to avoid issues on some new disctibutions like openSUSE 15.3
that misses the pg_config utility necessary to install psycopg2 from
sources (psycopg/psycopg2#1001). Probably
there will be some performance degradation, but it is not crucial for
our use cases.
  • Loading branch information
eunovm committed Jan 13, 2022
1 parent 57efbed commit 61a7b16
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion klever/deploys/conf/debian-packages.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bc bison cmake flex gettext git graphviz libc6-dev-i386 libelf-dev libpq-dev libssl-dev make nginx postgresql python3-dev python3-pip rabbitmq-server unzip
bc bison cmake flex gettext git graphviz libc6-dev-i386 libelf-dev libssl-dev make nginx postgresql python3-dev python3-pip rabbitmq-server unzip
2 changes: 1 addition & 1 deletion klever/deploys/conf/fedora-packages.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bc bison cmake elfutils-libelf-devel flex gettext git glibc-devel.i686 graphviz libpq-devel make nginx openssl-devel postgresql postgresql-server python3-devel python3-pip rabbitmq-server unzip
bc bison cmake elfutils-libelf-devel flex gettext git glibc-devel.i686 graphviz make nginx openssl-devel postgresql postgresql-server python3-devel python3-pip rabbitmq-server unzip
2 changes: 1 addition & 1 deletion klever/deploys/conf/opensuse-packages.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
bc bison cmake flex gettext-runtime git graphviz glibc-devel libelf-devel openssl-devel make nginx postgresql12-server postgresql12-server-devel python3-devel python3-pip rabbitmq-server unzip gcc gcc-c++
bc bison cmake flex gettext-runtime git graphviz glibc-devel libelf-devel openssl-devel make nginx postgresql12-server python3-devel python3-pip rabbitmq-server unzip gcc gcc-c++
2 changes: 1 addition & 1 deletion requirements-openstack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pika==1.1.0
ply==3.11
prettytable==0.7.2
prompt-toolkit==3.0.8
psycopg2==2.8.6
psycopg2-binary==2.8.6
pycparser==2.20
pycryptodome==3.9.9
Pygments==2.7.3
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ MarkupSafe==1.1.1
pika==1.1.0
ply==3.11
prompt-toolkit==3.0.8
psycopg2==2.8.6
psycopg2-binary==2.8.6
Pygments==2.7.3
python-slugify==4.0.1
pytz==2020.4
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def package_files(package_directory):
"Django==3.0.6",
"BenchExec==3.3",
"clade>=3.4,<3.5",
"psycopg2",
"psycopg2-binary",
"graphviz",
"celery",
"django_celery_results",
Expand Down

0 comments on commit 61a7b16

Please sign in to comment.