Skip to content

Commit 199ef30

Browse files
authored
conditionally depend on importlib_resources (#7116)
In python >= 3.9, it's available as part of the stdlib.
1 parent 84d592c commit 199ef30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def run(self):
341341
license='MIT License',
342342
keywords=['z3', 'smt', 'sat', 'prover', 'theorem'],
343343
packages=['z3'],
344-
install_requires = ['importlib-resources'],
344+
install_requires = ["importlib-resources; python_version < '3.9'"],
345345
include_package_data=True,
346346
package_data={
347347
'z3': [os.path.join('lib', '*'), os.path.join('include', '*.h'), os.path.join('include', 'c++', '*.h')]

0 commit comments

Comments
 (0)