-
Notifications
You must be signed in to change notification settings - Fork 13
/
setup.py
37 lines (30 loc) · 1.04 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
#!/usr/bin/env python
from setuptools import setup
import os
import sys
try:
from urllib.request import urlopen
except ImportError:
from urllib import urlopen
HERE = os.path.abspath(os.path.dirname(__file__))
VERSION_NS = {}
with open(os.path.join(HERE, 'lc_multi_outputs', '_version.py')) as f:
exec(f.read(), {}, VERSION_NS)
LIB = os.path.join(HERE, 'lc_multi_outputs', 'nbextension', 'lib')
if not os.path.exists(LIB):
os.mkdir(LIB)
with open(os.path.join(LIB, 'diff_match_patch.js'), 'wb') as f:
f.write(urlopen('https://github.com/google/diff-match-patch/raw/master/javascript/diff_match_patch.js').read())
setup_args = dict (name='lc-multi-outputs',
version=VERSION_NS['__version__'],
description='LC multi outputs extension for Jupyter Notebook',
packages=['lc_multi_outputs'],
include_package_data=True,
platforms=['Jupyter Notebook 4.2.x', 'Jupyter Notebook 5.x'],
zip_safe=False,
install_requires=[
'notebook>=4.2.0',
]
)
if __name__ == '__main__':
setup(**setup_args)