Beispiel #1
0
from setuptools import find_packages, setup

from _setup_support import (build_or_install_bokehjs, conda_rendering,
                            fixup_building_sdist, fixup_for_packaged,
                            get_cmdclass, get_package_data, get_version,
                            install_js, package_files, package_path, ROOT,
                            SERVER, show_bokehjs, show_help)

# immediately bail for ancient pythons
if sys.version_info[:2] < (2, 7):
    raise RuntimeError("Bokeh requires python >= 2.7")

# immediately handle lightweight "python setup.py --install-js"
if len(sys.argv) == 2 and sys.argv[-1] == '--install-js':
    install_js()
    sys.exit()

# we want to have the license at the top level of the GitHub repo, but setup
# can't include it from there, so copy it to the package directory first thing
copy("LICENSE.txt", "bokeh/")

# state our runtime deps here, also used by meta.yaml (so KEEP the spaces)
REQUIRES = [
    'six >=1.5.2',
    'PyYAML >=3.10',
    'python-dateutil >=2.1',
    'Jinja2 >=2.7',
    'numpy >=1.7.1',
    'packaging >=16.8',
    'tornado >=4.3',
Beispiel #2
0
from setuptools import find_packages, setup

from _setup_support import (build_or_install_bokehjs, fixup_building_sdist,
                            fixup_for_packaged, fixup_old_jsargs, get_cmdclass,
                            get_package_data, get_version, install_js,
                            package_files, package_path, ROOT, SERVER,
                            show_bokehjs, show_help)

# immediately bail for ancient pythons
if sys.version_info[:2] < (2, 7):
    raise RuntimeError("Bokeh requires python >= 2.7")

# immediately handle lightweight "python setup.py --install-js"
if len(sys.argv) == 2 and sys.argv[-1] == '--install-js':
    install_js()
    sys.exit()

# we want to have the license at the top level of the GitHub repo, but setup
# can't include it from there, so copy it to the package directory first thing
copy("LICENSE.txt", "bokeh/")

# state our runtime deps here, also used by meta.yaml (so KEEP the spaces)
REQUIRES = [
    'six >=1.5.2',
    'requests >=1.2.3',
    'PyYAML >=3.10',
    'python-dateutil >=2.1',
    'Jinja2 >=2.7',
    'numpy >=1.7.1',
    'tornado >=4.3',