-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (42 loc) · 1.77 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
from setuptools import setup, find_packages
# from setuptools.command.install import install
# from subprocess import check_output
# class JupyterExtensionInstall(install):
# """Custom install setup to help run shell commands to register the
# extensions with jupyter"""
# def run(self):
# check_output('jupyter nbextension install geopyter_magic/geopyter.js', shell=True)
# check_output('jupyter nbextension enable geopyter', shell=True)
# check_output('jupyter serverextension enable --py geopyter_magic', shell=True)
# install.run(self)
setup(#cmdclass={'install': JupyterExtensionInstall},
name='geopyter_magic',
version='0.0.1',
author='Gerard C. Briones',
author_email='[email protected]',
url='https://github.com/ccri/geopyter_magic',
packages=find_packages(),
install_requires=[
'ipython',
'jupyter',
'requests'
],
data_files=[
('share/jupyter/nbextensions', [
'geopyter_magic/geopyter.js']),
('share/jupyter/nbextensions/geopyter', [
'geopyter_magic/geopyter.js',
'geopyter_magic/geopyter.css']),
('share/jupyter/nbextensions/d3js', [
'external/d3js/d3.v4.4.min.js']),
('share/jupyter/nbextensions/leaflet', [
'external/leaflet/leaflet.v1.0.2.min.js',
'external/leaflet/leaflet.css']),
('share/jupyter/nbextensions/leaflet/images', [
'external/leaflet/images/layers.png',
'external/leaflet/images/layers-2x.png',
'external/leaflet/images/marker-icon.png',
'external/leaflet/images/marker-icon-2x.png',
'external/leaflet/images/marker-shadow.png'])
]
)