2015-05-19 13:34:15 -07:00
#!/usr/bin/env python
# coding: utf-8
2015-12-16 11:28:32 +01:00
#------------------------------------------------------------------------------
# CLING - the C++ LLVM-based InterpreterG :)
# author: Min RK
2015-05-19 13:34:15 -07:00
# Copyright (c) Min RK
2015-12-16 11:28:32 +01:00
#
# This file is dual-licensed: you can choose to license it under the University
# of Illinois Open Source License or the GNU Lesser General Public License. See
# LICENSE.TXT for details.
#------------------------------------------------------------------------------
2015-05-19 13:34:15 -07:00
from __future__ import print_function
# the name of the project
name = ' clingkernel '
#-----------------------------------------------------------------------------
# Minimal Python version sanity check
#-----------------------------------------------------------------------------
import sys
v = sys . version_info
if v [ : 2 ] < ( 2 , 7 ) or ( v [ 0 ] > = 3 and v [ : 2 ] < ( 3 , 3 ) ) :
error = " ERROR: %s requires Python version 2.7 or 3.3 or above. " % name
print ( error , file = sys . stderr )
sys . exit ( 1 )
PY3 = ( sys . version_info [ 0 ] > = 3 )
#-----------------------------------------------------------------------------
# get on with it
#-----------------------------------------------------------------------------
import os
from glob import glob
from distutils . core import setup
pjoin = os . path . join
here = os . path . abspath ( os . path . dirname ( __file__ ) )
pkg_root = pjoin ( here , name )
setup_args = dict (
name = name ,
2016-07-22 19:24:35 +02:00
version = ' 0.0.2 ' ,
2015-05-22 21:58:20 +01:00
py_modules = [ ' clingkernel ' ] ,
2015-05-19 13:34:15 -07:00
scripts = glob ( pjoin ( ' scripts ' , ' * ' ) ) ,
description = " C++ Kernel for Jupyter with Cling " ,
2016-07-22 19:24:35 +02:00
author = ' Min RK, Axel Naumann ' ,
author_email = ' cling-dev@cern.ch ' ,
url = ' https://github.com/root-mirror/cling/ ' ,
2015-05-19 13:34:15 -07:00
license = ' BSD ' ,
platforms = " Linux, Mac OS X " ,
keywords = [ ' Interactive ' , ' Interpreter ' , ' Shell ' , ' Web ' ] ,
classifiers = [
' Intended Audience :: Developers ' ,
' Intended Audience :: System Administrators ' ,
' Intended Audience :: Science/Research ' ,
' License :: OSI Approved :: BSD License ' ,
' Programming Language :: Python ' ,
' Programming Language :: Python :: 3 ' ,
' Programming Language :: Python :: 3.3 ' ,
] ,
)
if ' develop ' in sys . argv or any ( a . startswith ( ' bdist ' ) for a in sys . argv ) :
import setuptools
setuptools_args = { }
install_requires = setuptools_args [ ' install_requires ' ] = [
2015-12-10 11:02:36 +01:00
' ipykernel ' ,
' traitlets ' ,
2015-05-19 13:34:15 -07:00
]
if ' setuptools ' in sys . modules :
setup_args . update ( setuptools_args )
if __name__ == ' __main__ ' :
setup ( * * setup_args )