Skip to content

Commit

Permalink
fail more gracefully when setuptools is missing
Browse files Browse the repository at this point in the history
automatic commit by git-black, original commits:
  a771c63
  • Loading branch information
Jacob Beck authored and iknox-fa committed Feb 8, 2022
1 parent 73a246c commit 9ef9ecb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@


from setuptools import setup

try:
from setuptools import find_namespace_packages
except ImportError:
# the user has a downlevel version of setuptools.
print('Error: dbt requires setuptools v40.1.0 or higher.')
print('Please upgrade setuptools with "pip install --upgrade setuptools" '
'and try again')
print('Please upgrade setuptools with "pip install --upgrade setuptools" ' "and try again")
sys.exit(1)


Expand Down
4 changes: 2 additions & 2 deletions plugins/postgres/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@


from setuptools import setup

try:
from setuptools import find_namespace_packages
except ImportError:
# the user has a downlevel version of setuptools.
print('Error: dbt requires setuptools v40.1.0 or higher.')
print('Please upgrade setuptools with "pip install --upgrade setuptools" '
'and try again')
print('Please upgrade setuptools with "pip install --upgrade setuptools" ' "and try again")
sys.exit(1)


Expand Down

0 comments on commit 9ef9ecb

Please sign in to comment.