z3: update python dependency (#16597)

-[x] `z3` needs a dependency on `py-setuptools`
-[x] `z3` has a run dependency on `python`, so we might as well make
     building with the python bindings default
This commit is contained in:
Todd Gamblin 2020-05-12 02:15:42 -07:00 committed by GitHub
parent 80e7a61597
commit a44f487a1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,8 +21,9 @@ class Z3(MakefilePackage):
phases = ['bootstrap', 'build', 'install'] phases = ['bootstrap', 'build', 'install']
variant('python', default=False, description='Enable python binding') variant('python', default=True, description='Enable python binding')
depends_on('python', type=('build', 'run')) depends_on('python', type=('build', 'run'))
depends_on('py-setuptools', type=('run'), when='+python')
extends('python', when='+python') extends('python', when='+python')
# Referenced: https://github.com/Z3Prover/z3/issues/1016 # Referenced: https://github.com/Z3Prover/z3/issues/1016