'Jinja2 >=2.7', 'numpy >=1.7.1', 'tornado >=4.3', ] # handle the compat difference for futures (meta.yaml handles differently) if sys.version_info[:2] == (2, 7): REQUIRES.append('futures >=3.0.3') # if this is just conda-build skimming information, skip all this actual work if "conda-build" not in sys.argv[0]: fixup_old_jsargs() # handle --build_js and --install_js fixup_for_packaged() # --build_js and --install_js not valid FROM sdist fixup_building_sdist() # must build BokehJS when MAKING sdists bokehjs_action = build_or_install_bokehjs() # configuration to include all the special or non-python files in the package # directory that need to also be installed or included in a build sampledata_pats = ('.csv', '.conf', '.gz', '.json', '.png', '.ics', '.geojson') package_path(join(SERVER, 'static')) package_path(join(ROOT, 'bokeh', 'core', '_templates')) package_path(join(ROOT, 'bokeh', 'sphinxext', '_templates')) package_path(join(ROOT, 'bokeh', 'server', 'views'), ('.html')) package_path(join(ROOT, 'bokeh', 'sampledata'), sampledata_pats) package_files('LICENSE.txt', 'themes/*.yaml') setup( # basic package metadata name='bokeh',
'Jinja2 >=2.7', 'numpy >=1.7.1', 'packaging >=16.8', 'tornado >=4.3', ] # handle the compat difference for futures (meta.yaml handles differently) if sys.version_info[:2] == (2, 7): REQUIRES.append('futures >=3.0.3') # if this is just conda-build skimming information, skip all this actual work if not conda_rendering(): fixup_for_packaged() # --build_js and --install_js not valid FROM sdist fixup_building_sdist() # must build BokehJS when MAKING sdists bokehjs_action = build_or_install_bokehjs() # configuration to include all the special or non-python files in the package # directory that need to also be installed or included in a build package_path(join(SERVER, 'static')) package_path(join(ROOT, 'bokeh', 'core', '_templates')) package_path(join(ROOT, 'bokeh', 'sphinxext', '_templates')) package_path(join(ROOT, 'bokeh', 'server', 'views'), ('.html')) package_path(join(ROOT, 'bokeh', 'sampledata', '_data')) package_files('LICENSE.txt', 'themes/*.yaml') setup( # basic package metadata name='bokeh', version=get_version(),
build_or_install_bokehjs, check_packaged, check_python, conda_rendering, install_js, show_bokehjs, show_help, INSTALL_REQUIRES, ) # bail on unsupported Python versions check_python() # immediately handle lightweight "python setup.py --install-js" if len(sys.argv) == 2 and sys.argv[-1] == '--install-js': install_js() sys.exit() # if this is just conda-build skimming information, skip all this actual work if not conda_rendering(): is_packaged = check_packaged() bokehjs_action = "packaged" if is_packaged else build_or_install_bokehjs() setup( # basic package metadata name='bokeh', version=versioneer.get_version(), description='Interactive plots and applications in the browser from Python', long_description=open("README.md").read(), long_description_content_type="text/markdown", license='BSD-3-Clause', author='Bokeh Team', author_email='*****@*****.**', url='https://github.com/bokeh/bokeh', classifiers=open("classifiers.txt").read().strip().split('\n'), # details needed by setup