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
|
from distutils.core import setup
from distutils.command.install import install
import sys
class install_with_kernelspec(install):
def run(self):
install.run(self)
from IPython.kernel.kernelspec import install_kernel_spec
install_kernel_spec('kernelspec', 'octave', replace=True)
with open('README.rst') as f:
readme = f.read()
svem_flag = '--single-version-externally-managed'
if svem_flag in sys.argv:
# Die, setuptools, die.
sys.argv.remove(svem_flag)
setup(name='octave_kernel',
version='0.2',
description='An Octave kernel for IPython',
long_description=readme,
author='Steven Silvester',
author_email='steven.silvester@ieee.org',
url='https://github.com/blink1073/octave_kernel',
py_modules=['octave_kernel'],
cmdclass={'install': install_with_kernelspec},
install_requires=['oct2py'],
classifiers = [
'Framework :: IPython',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: System :: Shells',
]
)
|