mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Merge pull request #1624 from takluyver/i1470
Two distinct but related fixes for byte-compilation on Python 3. * A slight hack so setuptools refrains from trying to byte-compile everything - issue #1470. The actual modules are still compiled by another step when I do `python3 setup.py install`, but that step is smart enough not to try to compile the examples as well. * A workaround for a bug in Python 3.1 - py_compile had only partly implemented PEP 263, so it recognises `coding:`, but not `encoding:` to specify a file encoding. This was causing build failures since my `nonascii.py` test sample was merged. Closes #1470.
This commit is contained in:
commit
496d6331c5
1
setup.py
1
setup.py
@ -237,6 +237,7 @@ if 'setuptools' in sys.modules:
|
||||
from setuptools.command.build_py import build_py
|
||||
setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
|
||||
setuptools_extra_args['entry_points'] = find_scripts(True, suffix='3')
|
||||
setuptools._dont_write_bytecode = True
|
||||
else:
|
||||
# If we are running without setuptools, call this function which will
|
||||
# check for dependencies an inform the user what is needed. This is
|
||||
|
Loading…
Reference in New Issue
Block a user