forked from ipython-contrib/jupyter_contrib_nbextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·95 lines (71 loc) · 3.1 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#Usage:
#pip install https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip --user
#verbose mode can be enabled with -v switch eg pip -v install ...
#upgrade with a --upgrade.
#A system install can be done by omitting the --user switch.
#Testing: pip install https://github.com/jfbercher/IPython-notebook-extensions/archive/pip-install.zip --user
"""
*********************************************************************************************************
IPython-contrib-nbextensions - (C) 2013-2016, IPython-contrib Developers - All rights reserved.
contains a collection of extensions that add functionality to the Jupyter notebook. These extensions are
mostly written in Javascript and will be loaded locally in your Browser.
The IPython-contrib repository https://github.com/ipython-contrib/IPython-notebook-extensions
is maintained independently by a group of users and developers and not officially related to the
IPython development team.
The maturity of the provided extensions may vary, please create an issue if you encounter any problems.
Released under Modified BSD License, read COPYING file for more details.
*********************************************************************************************************
"""
#from distutils.core import setup
from setuptools import setup, find_packages
from os.path import join
from sys import exit, prefix, version_info, argv
#import os, fnmatch
#FILES = [os.path.join(dirpath, f)
# for dirpath, dirnames, files in os.walk('.')
# for f in fnmatch.filter(files, '*') if '.git' not in dirpath]
if 'bdist_wheel' in argv:
raise RuntimeError("This setup.py does not support wheels")
#
if 'install' in argv: #-----------------------------------
print("Running source install...")
import install
print('Done!')
print("Configuring extensions...")
import configure_nbextensions
print('Done!')
#
# pip/setuptools install ------------------------------
classifiers = """\
Development Status :: 1 - Planning
Intended Audience :: End Users/Desktop
Intended Audience :: Science/Research
License :: OSI Approved :: BSD License
Natural Language :: English
Operating System :: OS Independent
Programming Language :: JavaScript
Programming Language :: Python :: 3
Topic :: Utilities
"""
print(__doc__)
# check python version
ver = (version_info.major, version_info.minor)
if ver < (3, 0):
print('WARNING: Python 3.x or higher might be required for some extensions.')
setup(name='Python-contrib-nbextensions',
version='alpha',
description=__doc__.split("\n")[2],
long_description='\n'.join(__doc__.split("\n")[2:]).strip(),
author='IPython-contrib Developers',
author_email='@gmail.com',
url='https://github.com/ipython-contrib/IPython-notebook-extensions',
platforms='POSIX',
keywords=['IPython Jupyter notebook extension'],
classifiers=filter(None, classifiers.split("\n")),
license='BSD',
install_requires = ['ipython >=4','jupyter','psutil >=2.2.1','pyyaml'],
#packages=['IPython-contrib-nbextensions'],
# **addargs
)