mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 03:33:10 +01:00
Throw specific errors for missing ircmatch/setuptools libraries
This commit is contained in:
parent
166adcf44d
commit
3381dda884
@ -16,7 +16,10 @@ import hashlib
|
||||
from copy import deepcopy
|
||||
import inspect
|
||||
|
||||
import ircmatch
|
||||
try:
|
||||
import ircmatch
|
||||
except ImportError:
|
||||
raise ImportError("Please install the ircmatch library and try again.")
|
||||
|
||||
from . import world, utils, structures, __version__
|
||||
from .log import *
|
||||
|
5
setup.py
5
setup.py
@ -1,6 +1,9 @@
|
||||
"""Setup module for PyLink IRC Services."""
|
||||
|
||||
from setuptools import setup, find_packages
|
||||
try:
|
||||
from setuptools import setup, find_packages
|
||||
except ImportError:
|
||||
raise ImportError("Please install Setuptools and try again.")
|
||||
from codecs import open
|
||||
import subprocess
|
||||
from os import path
|
||||
|
Loading…
Reference in New Issue
Block a user