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
|
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
|
# Distributed under the terms of the BSD License. The full license is in
|
||||||
# the file COPYING, distributed as part of this software.
|
# 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 *
|
from rlmain import *
|
||||||
import rlmain
|
import rlmain
|
||||||
__all__ = [ 'parse_and_bind',
|
__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'
|
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',
|
classifiers = [u'Development Status :: 4 - Beta',
|
||||||
u'Environment :: Console',
|
u'Environment :: Console',
|
||||||
|
|||||||
@@ -9,10 +9,13 @@ import sys
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
pyreadline_codepage = sys.stdout.encoding
|
pyreadline_codepage = sys.stdout.encoding
|
||||||
except AttributeError: #This error occurs when pdb imports readline and doctest has replaced
|
except AttributeError:
|
||||||
#stdout with stdout collector
|
# This error occurs when pdb imports readline and doctest has replaced
|
||||||
pyreadline_codepage = u"ascii" #assume ascii codepage
|
# 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):
|
def ensure_unicode(text):
|
||||||
u"""helper to ensure that text passed to WriteConsoleW is unicode"""
|
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
|
from distutils.core import setup
|
||||||
execfile('pyreadline/release.py')
|
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',
|
packages = ['pyreadline','pyreadline.clipboard','pyreadline.configuration',
|
||||||
'pyreadline.console','pyreadline.keysyms','pyreadline.lineeditor',
|
'pyreadline.console','pyreadline.keysyms','pyreadline.lineeditor',
|
||||||
'pyreadline.modes','pyreadline.test',
|
'pyreadline.modes','pyreadline.test',
|
||||||
@@ -35,13 +42,13 @@ setup(name=name,
|
|||||||
license = license,
|
license = license,
|
||||||
classifiers = classifiers,
|
classifiers = classifiers,
|
||||||
url = url,
|
url = url,
|
||||||
# download_url = download_url,
|
download_url = download_url,
|
||||||
platforms = platforms,
|
platforms = platforms,
|
||||||
keywords = keywords,
|
keywords = keywords,
|
||||||
py_modules = ['readline'],
|
py_modules = ['readline'],
|
||||||
packages = packages,
|
packages = packages,
|
||||||
package_data = {'pyreadline':['configuration/*']},
|
package_data = {'pyreadline':['configuration/*']},
|
||||||
data_files = [('share/doc/pyreadline', glob.glob("doc/*")),
|
data_files = [],
|
||||||
]
|
cmdclass = cmd_class,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user