forked from markovmodel/pyemma_tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.2 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
import os
import versioneer
from setuptools import setup
def copy_notebooks():
import shutil
dest = os.path.join('pyemma_tutorials', 'notebooks')
try:
shutil.rmtree(dest, ignore_errors=True)
shutil.copytree('notebooks', dest)
print('moved notebooks into pkg')
except OSError:
pass
metadata=dict(
name='pyemma_tutorials',
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
packages=['pyemma_tutorials'],
package_data={'pyemma_tutorials': ['notebooks/*',
'notebooks/static/*',
'jupyter_notebook_config.py',
'jupyter_notebook_config.json',
]},
include_package_data=True,
entry_points={'console_scripts': ['pyemma_tutorials = pyemma_tutorials.cli:main'],},
install_requires=['pyemma',
'mdshare',
'nbexamples',
'nglview',
'notebook',
'jupyter_contrib_nbextensions',
],
zip_safe=False,
)
if __name__ == '__main__':
copy_notebooks()
setup(**metadata)