Permalink
Browse files

fix optics demo on python3

print warning when setuptools is not available
  • Loading branch information...
1 parent 8fe5844 commit f6b00a135c2ec7b5ed8ac6fb37021396a057e338 @campagnola campagnola committed Oct 18, 2016
Showing with 2 additions and 1 deletion.
  1. +1 −1 examples/optics/pyoptic.py
  2. +1 −0 setup.py
@@ -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
@@ -42,6 +42,7 @@
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

0 comments on commit f6b00a1

Please sign in to comment.