-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (36 loc) · 1.11 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
from setuptools import setup, find_packages
# get paths to extensions
extension_files = []
for (dirname, dirnames, filenames) in os.walk('e2xhelp/nbextensions'):
root = os.path.relpath(dirname, 'e2xhelp')
for filename in filenames:
if filename.endswith('.pyc'):
continue
extension_files.append(os.path.join(root, filename))
# get paths to all static files and templates
static_files = []
for (dirname, dirnames, filenames) in os.walk('e2xhelp/server_extensions/help/static'):
root = os.path.relpath(dirname, 'e2xhelp/server_extensions/help')
for filename in filenames:
static_files.append(os.path.join(root, filename))
name = u'e2xhelp'
setup_args = dict(
name=name,
version='0.0.1',
author='Tim Metzler',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
package_data= {
'e2xhelp': extension_files,
'e2xhelp.server_extensions.help': static_files
},
install_requires=[
'jupyter',
'notebook',
'tornado'
],
)
if __name__ == '__main__':
setup(**setup_args)