mirror of
https://github.com/openbabel/openbabel.git
synced 2026-08-27 05:37:38 -05:00
Fix the import of Tkinter in Python 3+
This commit is contained in:
@@ -51,7 +51,7 @@ else:
|
||||
from . import openbabel as ob
|
||||
_obfuncs = _obconsts = ob
|
||||
try:
|
||||
import Tkinter as tk
|
||||
from six.moves import tkinter as tk
|
||||
from PIL import Image as PIL
|
||||
from PIL import ImageTk as piltk
|
||||
except ImportError: # pragma: no cover
|
||||
|
||||
@@ -126,6 +126,7 @@ setup(
|
||||
zip_safe=False,
|
||||
cmdclass={'build': CustomBuild, 'build_ext': CustomBuildExt, 'install': CustomInstall, 'sdist': CustomSdist},
|
||||
packages=['openbabel'],
|
||||
install_requires=[six],
|
||||
ext_modules=[obextension],
|
||||
classifiers=[
|
||||
'Development Status :: 5 - Production/Stable',
|
||||
|
||||
Reference in New Issue
Block a user