3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00

Throw specific errors for missing ircmatch/setuptools libraries

This commit is contained in:
James Lu 2016-07-19 17:44:22 -07:00
parent 166adcf44d
commit 3381dda884
2 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,10 @@ import hashlib
from copy import deepcopy from copy import deepcopy
import inspect 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 . import world, utils, structures, __version__
from .log import * from .log import *

View File

@ -1,6 +1,9 @@
"""Setup module for PyLink IRC Services.""" """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 from codecs import open
import subprocess import subprocess
from os import path from os import path