mirror of
https://github.com/wassname/pyreadline.git
synced 2026-06-27 16:10:38 +08:00
@@ -1 +1,9 @@
|
||||
include pyreadline/configuration/pyreadlineconfig.ini
|
||||
|
||||
graft doc
|
||||
exclude doc/\#*
|
||||
exclude doc/man/*.1
|
||||
|
||||
# docs subdirs we want to skip
|
||||
prune doc/attic
|
||||
prune doc/build
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# Distributed under the terms of the BSD License. The full license is in
|
||||
# the file COPYING, distributed as part of this software.
|
||||
#*****************************************************************************
|
||||
import unicode_helper, logger, clipboard, lineeditor, modes
|
||||
import unicode_helper, logger, clipboard, lineeditor, modes, console
|
||||
from rlmain import *
|
||||
import rlmain
|
||||
__all__ = [ 'parse_and_bind',
|
||||
|
||||
@@ -61,11 +61,13 @@ authors = {u'Jorgen' : (u'Jorgen Stenarson',u'jorgen.stenarson@bostream.nu'),
|
||||
|
||||
url = u'http://ipython.scipy.org/moin/PyReadline/Intro'
|
||||
|
||||
download_url = u''
|
||||
download_url = u'https://launchpad.net/pyreadline/+download'
|
||||
|
||||
platforms = [u'Windows XP/2000/NT',u'Windows 95/98/ME']
|
||||
platforms = [u'Windows XP/2000/NT',
|
||||
u'Windows 95/98/ME']
|
||||
|
||||
keywords = [u'readline',u'pyreadline']
|
||||
keywords = [u'readline',
|
||||
u'pyreadline']
|
||||
|
||||
classifiers = [u'Development Status :: 4 - Beta',
|
||||
u'Environment :: Console',
|
||||
|
||||
@@ -9,10 +9,13 @@ import sys
|
||||
|
||||
try:
|
||||
pyreadline_codepage = sys.stdout.encoding
|
||||
except AttributeError: #This error occurs when pdb imports readline and doctest has replaced
|
||||
#stdout with stdout collector
|
||||
pyreadline_codepage = u"ascii" #assume ascii codepage
|
||||
except AttributeError:
|
||||
# This error occurs when pdb imports readline and doctest has replaced
|
||||
# stdout with stdout collector. We will assume ascii codepage
|
||||
pyreadline_codepage = u"ascii"
|
||||
|
||||
if pyreadline_codepage is None:
|
||||
pyreadline_codepage = u"ascii"
|
||||
|
||||
def ensure_unicode(text):
|
||||
u"""helper to ensure that text passed to WriteConsoleW is unicode"""
|
||||
|
||||
@@ -19,6 +19,13 @@ if os.path.exists('MANIFEST'): os.remove('MANIFEST')
|
||||
from distutils.core import setup
|
||||
execfile('pyreadline/release.py')
|
||||
|
||||
try:
|
||||
import sphinx
|
||||
from sphinx.setup_command import BuildDoc
|
||||
cmd_class ={'build_sphinx': BuildDoc}
|
||||
except ImportError:
|
||||
cmd_class = None
|
||||
|
||||
packages = ['pyreadline','pyreadline.clipboard','pyreadline.configuration',
|
||||
'pyreadline.console','pyreadline.keysyms','pyreadline.lineeditor',
|
||||
'pyreadline.modes','pyreadline.test',
|
||||
@@ -35,13 +42,13 @@ setup(name=name,
|
||||
license = license,
|
||||
classifiers = classifiers,
|
||||
url = url,
|
||||
# download_url = download_url,
|
||||
download_url = download_url,
|
||||
platforms = platforms,
|
||||
keywords = keywords,
|
||||
py_modules = ['readline'],
|
||||
packages = packages,
|
||||
package_data = {'pyreadline':['configuration/*']},
|
||||
data_files = [('share/doc/pyreadline', glob.glob("doc/*")),
|
||||
]
|
||||
data_files = [],
|
||||
cmdclass = cmd_class,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user