Closed leeping closed 10 years ago
The following lines need to be changed in order to make the "2to3"-ed script work with Python 2.7. I still haven't tested Python 3.
byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/loader.py to loader.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/traitlets.py to traitlets.pyc File "build/bdist.linux-x86_64/egg/ipcfg/IPython/traitlets.py", line 395 class HasTraits(object, metaclass=MetaHasTraits): ^ SyntaxError: invalid syntax byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/path.py to path.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/text.py to text.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/py3compat.py to py3compat.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/importstring.py to importstring.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/decorator/_decorator.py to _decorator.pyc File "build/bdist.linux-x86_64/egg/ipcfg/IPython/decorator/_decorator.py", line 165 print('Error in generated code:', file=sys.stderr) ^ SyntaxError: invalid syntax byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/decorator/__init__.py to __init__.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/__init__.py to __init__.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/IPython/configurable.py to configurable.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/openmmapplication.py to openmmapplication.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/extratraitlets.py to extratraitlets.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/progressreporter.py to progressreporter.pyc File "build/bdist.linux-x86_64/egg/ipcfg/progressreporter.py", line 86 print(' '.join(f % e for f, e in zip(headerwidths, row1)), file=self._out) ^ SyntaxError: invalid syntax byte-compiling build/bdist.linux-x86_64/egg/ipcfg/velocityverlet.py to velocityverlet.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/__init__.py to __init__.pyc byte-compiling build/bdist.linux-x86_64/egg/ipcfg/restartreporter.py to restartreporter.pyc creating build/bdist.linux-x86_64/egg/EGG-INFO installing scripts to build/bdist.linux-x86_64/egg/EGG-INFO/scripts running install_scripts running build_scripts copying and adjusting openmm -> build/scripts-2.7 creating build/bdist.linux-x86_64/egg/EGG-INFO/scripts copying build/scripts-2.7/openmm -> build/bdist.linux-x86_64/egg/EGG-INFO/scripts changing mode of build/bdist.linux-x86_64/egg/EGG-INFO/scripts/openmm to 775 copying openmm.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO copying openmm.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying openmm.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO copying openmm.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... ipcfg.IPython.loader: module references __file__ creating 'dist/openmm-0.1-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it removing 'build/bdist.linux-x86_64/egg' (and everything under it) Processing openmm-0.1-py2.7.egg creating /home/leeping/local/lib/python2.7/site-packages/openmm-0.1-py2.7.egg Extracting openmm-0.1-py2.7.egg to /home/leeping/local/lib/python2.7/site-packages File "/home/leeping/local/lib/python2.7/site-packages/openmm-0.1-py2.7.egg/ipcfg/progressreporter.py", line 86 print(' '.join(f % e for f, e in zip(headerwidths, row1)), file=self._out) ^ SyntaxError: invalid syntax File "/home/leeping/local/lib/python2.7/site-packages/openmm-0.1-py2.7.egg/ipcfg/IPython/traitlets.py", line 395 class HasTraits(object, metaclass=MetaHasTraits): ^ SyntaxError: invalid syntax File "/home/leeping/local/lib/python2.7/site-packages/openmm-0.1-py2.7.egg/ipcfg/IPython/decorator/_decorator.py", line 165 print('Error in generated code:', file=sys.stderr) ^ SyntaxError: invalid syntax Adding openmm 0.1 to easy-install.pth file
This isn't the right way to do it. I'll take care of this.
The following lines need to be changed in order to make the "2to3"-ed script work with Python 2.7. I still haven't tested Python 3.