# then, make them all dependencies for the main PDF (the html will get # auto-generated as well). to_update.append( ('docs/dist/ipython.pdf', docdeps, "cd docs && make dist") ) [ target_update(*t) for t in to_update ] #--------------------------------------------------------------------------- # Find all the packages, package data, and data_files #--------------------------------------------------------------------------- packages = find_packages() package_data = find_package_data() data_files = find_data_files() #--------------------------------------------------------------------------- # Handle scripts, dependencies, and setuptools specific things #--------------------------------------------------------------------------- # For some commands, use setuptools. Note that we do NOT list install here! # If you want a setuptools-enhanced install, just run 'setupegg.py install' if len(set(('develop', 'sdist', 'release', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb', 'bdist_wininst', 'install_egg_info', 'build_sphinx', 'egg_info', 'easy_install', 'upload', )).intersection(sys.argv)) > 0: import setuptools # This dict is used for passing extra arguments that are setuptools
import os.path import sys 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) } # Script to be run by the windows binary installer after the default setup # routine, to add shortcuts and similar windows-only things. Windows # post-install scripts MUST reside in the scripts/ dir, otherwise distutils # doesn't find them. if 'bdist_wininst' in sys.argv: if len(sys.argv) > 2 and \ ('sdist' in sys.argv or 'bdist_rpm' in sys.argv): print >> sys.stderr, "ERROR: bdist_wininst must be run alone. Exiting." sys.exit(1) setup_args['scripts'] = [ os.path.join('scripts', 'ipython_win_post_install.py')
setup_args = dict( name=name, description="A web-based notebook environment for interactive computing", long_description=""" The Jupyter Notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations, and explanatory text. The Notebook has support for multiple programming languages, sharing, and interactive widgets. Read `the documentation <https://jupyter-notebook.readthedocs.io>`_ for more information. """, version=version, packages=find_packages(), package_data=find_package_data(), author='Jupyter Development Team', author_email='*****@*****.**', url='http://jupyter.org', license='BSD', platforms="Linux, Mac OS X, Windows", keywords=['Interactive', 'Interpreter', 'Shell', 'Web'], classifiers=[ 'Intended Audience :: Developers', 'Intended Audience :: System Administrators', 'Intended Audience :: Science/Research', 'License :: OSI Approved :: BSD License', 'Programming Language :: Python', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6',
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()