@@ -240,9 +240,9 @@ def generate(self):
240240 def build (self ):
241241 # pg_config is required to build psycopg2 from source without system package.
242242 # However, this approach fails on later stage, when venv for tests is built.
243- # libpq = self.dependencies["libpq"]
244- # if libpq:
245- # os.environ["PATH"] = os.environ["PATH"] + ":" + libpq.package_folder+ "/bin"
243+ libpq = self .dependencies ["libpq" ]
244+ if libpq :
245+ os .environ ["PATH" ] = os .environ ["PATH" ] + ":" + libpq .package_folder + "/bin"
246246
247247 cmake = CMake (self )
248248 cmake .configure ()
@@ -259,9 +259,23 @@ def package_info(self):
259259
260260 def system_requirements (self ):
261261 if self .options .with_postgresql :
262- # pg_config is required to build psycopg2 python module from source at
263- # testsuite venv creation during functional testing of user code.
264- package_manager .Apt (self ).install (['libpq-dev' ])
265- package_manager .Yum (self ).install (['libpq-devel' ])
266- package_manager .PacMan (self ).install (['libpq-dev' ])
267- package_manager .Zypper (self ).install (['libpq-devel' ])
262+ self .output .warning (
263+ 'Testing services linked with userver::postgresql require '
264+ 'PostgreSQL database and libpq-dev* packages installed in your system' ,
265+ )
266+ if self .options .with_kafka :
267+ self .output .warning (
268+ 'Testing services linked with userver::kafka require Kafka installed in your system' ,
269+ )
270+ if self .options .with_mongodb :
271+ self .output .warning (
272+ 'Testing services linked with userver::mongo require MongoDB installed in your system' ,
273+ )
274+ if self .options .with_redis :
275+ self .output .warning (
276+ 'Testing services linked with userver::redis require RedisDB installed in your system' ,
277+ )
278+ if self .options .with_clickhouse :
279+ self .output .warning (
280+ 'Testing services linked with userver::clickhouse require ClickHouse installed in your system' ,
281+ )
0 commit comments