forked from bokeh/bokeh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
44 lines (40 loc) · 1.59 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# needs to be tested
import sys
if len(sys.argv)>1 and sys.argv[1] == 'develop':
# Only import setuptools if we have to
import setuptools
else:
import shutil
shutil.copy("jsbuild/application.js", "bokeh/server/static/js/application.js")
shutil.copy("jsbuild/bokehnotebook.js", "bokeh/server/static/js/bokehnotebook.js")
from distutils.core import setup
import os
import sys
__version__ = (0, 0, 1)
package_data_dirs = []
for dirname, _, files in os.walk('bokeh/server/static', followlinks=True):
dirname = os.path.relpath(dirname, 'bokeh')
for f in files:
package_data_dirs.append(os.path.join(dirname, f))
for dirname, _, files in os.walk('bokeh/server/templates', followlinks=True):
dirname = os.path.relpath(dirname, 'bokeh')
for f in files:
package_data_dirs.append(os.path.join(dirname, f))
for dirname, _, files in os.walk('bokeh/templates', followlinks=True):
dirname = os.path.relpath(dirname, 'bokeh')
for f in files:
package_data_dirs.append(os.path.join(dirname, f))
setup(
name = 'bokeh',
version = '.'.join([str(x) for x in __version__]),
packages = ['bokeh', 'bokeh.chaco_gg', 'bokeh.server',
'bokeh.server.models', 'bokeh.server.views',
'bokeh.server.test', 'bokeh.specialmodels'],
package_data = {'bokeh' : package_data_dirs},
author = 'Continuum Analytics',
author_email = '[email protected]',
url = 'http://github.com/ContinuumIO/Bokeh',
description = 'Statistical and novel interactive HTML plots for Python',
zip_safe=False,
license = 'New BSD',
)