##// END OF EJS Templates
allow IPython to run without writable home dir...
allow IPython to run without writable home dir get_ipython_dir() ensures that the *IPython* dir is writable, which is more relevant, but the home dir need not be writable. Some optional behaviors (e.g. `%logstart global`) will not work if the home dir is not writable, but IPython should not crash. Approximately no other operations actually depend on writing directly to $HOME.

File last commit:

r4900:30b93ed6
r5384:db42b5f7
Show More
setup3.py
21 lines | 655 B | text/x-python | PythonLexer
import os.path
from setuptools import setup
from setuptools.command.build_py import build_py
from setupbase import (setup_args,
find_scripts,
find_packages,
find_package_data,
record_commit_info,
)
setup_args['entry_points'] = find_scripts(True, suffix='3')
setup_args['packages'] = find_packages()
setup_args['package_data'] = find_package_data()
setup_args['cmdclass'] = {'build_py': record_commit_info('IPython', build_cmd=build_py)}
def main():
setup(use_2to3 = True, **setup_args)
if __name__ == "__main__":
main()