##// END OF EJS Templates
fix base64 code in nbformat.v2...
fix base64 code in nbformat.v2 base64 encoding functions were called, but had no effect, because the notebook already has everything as b64-encoded bytestrings, which are valid ascii literals on Python 2. However, the encode/decode logic is actually triggered on Python 3, revealing its errors. This fixes the base64 functions that had no effect to have their intended effect, but does not use them. Rather, it is assumed that bytes objects are already b64-encoded (and thus ascii-safe), which assumption was already made in Python 2.

File last commit:

r4900:30b93ed6
r5174:66077063
Show More
setup3.py
21 lines | 655 B | text/x-python | PythonLexer
Thomas Kluyver
Make installation with Python 3 possible.
r4750 import os.path
from setuptools import setup
Thomas Kluyver
Fix IPython.utils.sysinfo for Python 3.
r4900 from setuptools.command.build_py import build_py
Thomas Kluyver
Make installation with Python 3 possible.
r4750
Thomas Kluyver
Update irunner - needs work on pexpect to work in Python 3.
r4893 from setupbase import (setup_args,
find_scripts,
find_packages,
find_package_data,
Thomas Kluyver
Fix IPython.utils.sysinfo for Python 3.
r4900 record_commit_info,
Thomas Kluyver
Update irunner - needs work on pexpect to work in Python 3.
r4893 )
Thomas Kluyver
Make installation with Python 3 possible.
r4750
Thomas Kluyver
Allow 'python setup.py install' to work correctly for either Python 2 or 3.
r4765 setup_args['entry_points'] = find_scripts(True, suffix='3')
Thomas Kluyver
Make installation with Python 3 possible.
r4750 setup_args['packages'] = find_packages()
Thomas Kluyver
Add notebook resources to Python 3 build process.
r4838 setup_args['package_data'] = find_package_data()
Thomas Kluyver
Fix IPython.utils.sysinfo for Python 3.
r4900 setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
Thomas Kluyver
Make installation with Python 3 possible.
r4750
Thomas Kluyver
Allow 'python setup.py install' to work correctly for either Python 2 or 3.
r4765 def main():
setup(use_2to3 = True, **setup_args)
if __name__ == "__main__":
main()