Skip to content

Commit

Permalink
[python] Print error message if setuptools are not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
asadchev authored and evaleev committed Nov 25, 2023
1 parent 77c26cc commit 9fd7d79
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion python/setup.py.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import setuptools
try:
import setuptools
except ImportError as e:
print(
"Error: %s\n" % str(e) +
"Python setuptools are not installed\n" +
"'pip install setuptools' to build libint Python bindings"
)
import sys
sys.exit(1)

from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
import os
Expand Down

0 comments on commit 9fd7d79

Please sign in to comment.