fix optics demo on python3

print warning when setuptools is not available
This commit is contained in:
Luke Campagnola 2016-10-18 08:47:38 -07:00
parent 8fe58449c7
commit f6b00a135c
2 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def wlPen(wl):
return pen
class ParamObj:
class ParamObj(object):
# Just a helper for tracking parameters and responding to changes
def __init__(self):
self.__params = {}

View File

@ -42,6 +42,7 @@ try:
from setuptools import setup
from setuptools.command import install
except ImportError:
sys.stderr.write("Warning: could not import setuptools; falling back to distutils.\n")
from distutils.core import setup
from distutils.command import install