Skip to content

Commit

Permalink
conditionally depend on importlib_resources (#7116)
Browse files Browse the repository at this point in the history
In python >= 3.9, it's available as part of the stdlib.
  • Loading branch information
cj81499 committed Feb 18, 2024
1 parent 84d592c commit 199ef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def run(self):
license='MIT License',
keywords=['z3', 'smt', 'sat', 'prover', 'theorem'],
packages=['z3'],
install_requires = ['importlib-resources'],
install_requires = ["importlib-resources; python_version < '3.9'"],
include_package_data=True,
package_data={
'z3': [os.path.join('lib', '*'), os.path.join('include', '*.h'), os.path.join('include', 'c++', '*.h')]
Expand Down

0 comments on commit 199ef30

Please sign in to comment.