gpdb: fix runtime issue (#17521)

This commit is contained in:
darmac 2020-07-15 10:47:29 +08:00 committed by GitHub
parent a2729fcd7f
commit 88537d02e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,7 @@ class Gpdb(AutotoolsPackage):
version('5.23.0', sha256='b06a797eb941362d5473b84d5def349b5ce12ce87ab116bea7c74ad193738ae9')
depends_on('zstd')
depends_on('py-setuptools@:44.99.99')
depends_on('apr')
depends_on('libevent')
depends_on('curl')
@ -35,7 +36,17 @@ class Gpdb(AutotoolsPackage):
depends_on('libxml2')
depends_on('flex')
depends_on('readline')
depends_on('py-subprocess32', type=('build', 'run'))
depends_on('python@:2.8.0', type=('build', 'run'))
depends_on('py-lockfile', type=('build', 'run'))
depends_on('py-psutil', type=('build', 'run'))
depends_on('py-utils@:1.0.0', type=('build', 'run'))
def configure_args(self):
args = ['--disable-orca']
args = ['--with-python', '--disable-orca', '--enable-depend',
'--with-libxml']
return args
def setup_run_environment(self, env):
env.append_path('GPHOME', self.prefix)
env.append_path('PYTHONPATH', self.prefix.lib.python)