eggsetup.py
55 lines
| 1.8 KiB
| text/x-python
|
PythonLexer
vivainio
|
r138 | #!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||||
"""Setup script for IPython. | ||||
Under Posix environments it works like a typical setup.py script. | ||||
Under Windows, the command sdist is not supported, since IPython | ||||
requires utilities, which are not available under Windows.""" | ||||
#***************************************************************************** | ||||
# Copyright (C) 2001-2005 Fernando Perez <fperez@colorado.edu> | ||||
# | ||||
# Distributed under the terms of the BSD License. The full license is in | ||||
# the file COPYING, distributed as part of this software. | ||||
#***************************************************************************** | ||||
import sys, os | ||||
from glob import glob | ||||
from setupext import install_data_ext | ||||
vivainio
|
r139 | |||
vivainio
|
r138 | isfile = os.path.isfile | ||
if os.path.exists('MANIFEST'): os.remove('MANIFEST') | ||||
from setuptools import setup | ||||
execfile(os.path.join('IPython','Release.py')) | ||||
cfgfiles = filter(isfile, glob('IPython/UserConfig/*')) | ||||
# Call the setup() routine which does most of the work | ||||
setup(name = name, | ||||
version = version, | ||||
description = description, | ||||
long_description = long_description, | ||||
author = authors['Fernando'][0], | ||||
author_email = authors['Fernando'][1], | ||||
url = url, | ||||
download_url = download_url, | ||||
license = license, | ||||
platforms = platforms, | ||||
keywords = keywords, | ||||
packages = ['IPython', 'IPython.Extensions'], | ||||
cmdclass = {'install_data': install_data_ext}, | ||||
vivainio
|
r139 | data_files = [ | ||
vivainio
|
r138 | ('lib', 'IPython/UserConfig', cfgfiles)], | ||
# egg options | ||||
entry_points = { | ||||
'console_scripts': [ | ||||
'ipython = IPython.ipapi:launch_new_instance', | ||||
'pycolor = IPython.PyColorize:main' | ||||
], | ||||
} | ||||
) | ||||